For the Love of Chocolate, Style Your Optgroup!

2008 September 10
tags: ColdFusion · CSS
by Paul Marcotte
If you haven't tried out the cfUniForm tag library by Matt Quackenbush, I highly recommend it. Version 2.3 includes some nice updates proposed by Bob Silverberg, including the addition of optgroup to select lists. I don't like the default italic style for an optgroup label, so when I use it, I add a simple css selector to make them a little more visually appealing. For example: optgroup {
   font-weight: bold;
   font-style:normal;
}
Don't let default optgroup styles drag you down. Make them great with a little CSS.