Archive for December, 2009

I've been a coldfusion developer for over 9 years now, and tinkered with web design for at least 12. It's pretty rare for me to find something I've never used before and didn't know existed in HTML… but today, I did.

The OPTGROUP tag is how you make non-selectable headings in select lists. I guess for some reason I always assumed that was done with javascript or CSS, but no, it's a simple tag.

In case I ever need it again, this is the CSS to force a "proper" ordered list hierarchy all the way to 6 layers deep. (pro tip – if it's 6 layers deep, you're doing something wrong)

<style type="text/css">
  OL { list-style-type:upper-roman }
  OL OL { list-style-type:upper-alpha }
  OL OL OL { list-style-type:decimal }
  OL OL OL OL { list-style-type:lower-roman }
  OL OL OL OL OL { list-style-type:lower-alpha }
  OL OL OL OL OL OL { list-style-type:lower-greek }
</style>