Treehouse: Grow your CSS skills. Land your dream job.


but the parser didn’t like that.

# April 9, 2012 at 1:57 pm

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:

# April 9, 2012 at 3:01 pm

Hi there,

I can do the PHP and JS, my question is the CSS!

If I do this:


The inline styling simply doesn’t work and I’m wondering if there is a way to style them without any excessive CSS classes.

# April 9, 2012 at 4:07 pm

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 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).

# April 9, 2012 at 10:11 pm


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.