The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Styling s
Was just wondering if there was a way to style select options inline. I know, inline.
So you want a dropdown so that users can change the font that they see on your website? Something like that?
Either way you’ll need to look into some PHP or JS.
You could do something similar to this, but change it from buttons to a select and font-size to font-family: http://stackoverflow.com/questions/891980/allow-users-to-change-font-size-in-a-webpage
Dropdown options can be styled…but it’s extremely limited. Colors are fine, font types are not. If you really need to style things, better avoid SELECT and OPTION and make a “fake” dropdown.
See http://jsfiddle.net/senff/bcQkN/1/ for an example of attempting to style a real dropdown, and a quick example of an HTML/CSS mock dropdown (which obviously needs a little more code behind it).