The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › link doesn't work on mobile version dropdown menu
Hi, I referred to https://css-tricks.com/examples/ConvertMenuToDropdown/optgroup.php to create my file.
I have a dropdown menu nav bar.
It works fine in regular screen version but when I click on the mobile version and scroll down to submenu’s “About FFS”, the link doesn’t work. How do I get it to work?
I input the coding into codepen. But how do I make it so you can access it? Does this work: (http://codepen.io/anon/pen/Bkedl/ “codpen link problem for Tish”) ???
You don’t add a link to the text for the option. You’ll add the URL as the value of the option
<select> <option>Home</option> <optgroup label="ABOUT FFS"> <option> - About FFS</option> <option value="welcome.html">CSS-Tricks</option> <option> - Welcome from the Principal</option> </optgroup> </select>