Checkmarks on Menus

I’ve managed to add tick marks to selected menu items with css.

Sample code:

option
{
    padding-left: 15px;
}
option[selected]:before
{
    margin-left: -15px;
    content: url('/media/icons/tick.png');
}

Works okay in mozilla, and (seems to) downgrade okay in other popular browsers. Although this may be old news to some, I’m considering it a minor personal
triumph.

Comments