Splexh
Splexh
KPCKevin Powell - Community
Created by Splexh on 1/7/2024 in #front-end
Creating a Language Selector with Image Display Issue in HTML - Seeking JavaScript or CSS Solution
Hi, I'm working on creating a language selector where users can choose a country. Unfortunately, the images aren't showing up because HTML doesn't support displaying images in selection fields. Is there a way to overcome this using JavaScript or CSS to ensure the images are visible? Thanks in advance! <select name="" id=""> <option value=""><img src="images/germany.png" alt=""></option> <option value=""><img src="images/dominican-republic.png" alt=""></option> <option value=""><img src="images/united-states.png" alt=""></option> </select>
26 replies