Click to See Complete Forum and Search --> : default fonts
jpmoriarty
03-23-2004, 11:38 AM
Just wondering (in my ignorance) - when I do my CSS i set up a body font, but I find that when I'm defining input's, or textareas etc I have to redefine that font. Then, if i later decide to change the body font, i've got to go through and change it for all of them. Is there a way I can set these elements to use the default font, so that when I change that it changes it everywhere?
Vladdy
03-23-2004, 11:50 AM
Form elements do not inherit fonts by default. You can change this behaviour in compliant browsers with a simple line:
input, select, textarea
{ font-family: inherit;
}
However the damn IE does not recognize the inherit option. So to make a single font declaration for all browsers and all elementsuse:
body, input, select, textarea
{ font-family: Tahoma, Arial, sans-serif;
}