You are here: Re: css: how much / little to use? « HTML « IT news, forums, messages
Re: css: how much / little to use?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация