|
Posted by Safalra on 08/11/05 19:33
yari.mcgauley@gmail.com wrote:
> I have a pretty simple stylesheet, but I'm always looking to minimise
> it. My question is, once you have declared a font property, how often
> should you use it again?
> i.e. I declare:
> body { font-family: Verdana; font-size: 10px; color: #865078; }
> so, do I need to keep declaring every heading, footer etc as 'Verdana,
> 10px', or can I get rid of them.
Font-family is inherited for most elements (code and tt are
exceptions), and so you don't need to declare it again, unless an
intervening element has a different font.
You should be aware though that Verdana has serious issues as a font on
the web (I'm sure someone else replying can direct you to a page
detailing the problems).
--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/
Navigation:
[Reply to this message]
|