I have noticed on various websites that some have changed the font, size, etc for the text that is displayed in "<select>" elements. How would I go about stylizing that element, and what attributes apply to it?<select style="font:11px/17px 'arial black', 'verdana', sans-serif;color:#ff0000;background-color:#000000;">
<option></option>
</select>
In order those styles are font-size, line-height, font-family, color, background-color, for styling select elements that should be all you need. If you would like to style each of those individually then just use the names I posted above and then a value, for example:
font-family:'arial black', 'verdana', sans-serif;
In the case of the font-family, you can list a number of different fonts that you would like to be used (the first will be used, but if the user doesn't have that font the second will be used and so on). At the end of your list you should specify a default font family type, in this case I have used sans-serif.
Units for the font sizes include pt, px, em, % cm and mm.Thanks, that's exactly what I needed to know. You rock.Happy to help.
<option></option>
</select>
In order those styles are font-size, line-height, font-family, color, background-color, for styling select elements that should be all you need. If you would like to style each of those individually then just use the names I posted above and then a value, for example:
font-family:'arial black', 'verdana', sans-serif;
In the case of the font-family, you can list a number of different fonts that you would like to be used (the first will be used, but if the user doesn't have that font the second will be used and so on). At the end of your list you should specify a default font family type, in this case I have used sans-serif.
Units for the font sizes include pt, px, em, % cm and mm.Thanks, that's exactly what I needed to know. You rock.Happy to help.