July 23, 2008
2:45 am | Last updated: July 23, 2008 at: 2:48 am
Spice up HTML select boxes with graphics
Philipp Lenssen shows “ how can you spice up HTML selection box with graphics?” —”you can emulate selection boxes using HTML layers, but you may also want to provide a traditional HTML form selection box using the <select> element. There's a couple of things you can do. The <optgroup> element groups together and labels as set of items. A style applied to an <option> can add colors. And then there's some nice Unicode symbols, like stars (★) or checkmarks (✓), which can bring a more graphical look to your selection box, too, see following code:
Loading

Leave a comment »