Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Is there a correct or standard way to write your CSS?


swa66 - 4:08 pm on Jun 13, 2009 (gmt 0)


FWIW, and with all due respect:
*{font-family:tahoma}

Isn't the best example possible.

First: A font family is a list of fonts and it really ought to end in a generic font. Linux, FreeBSD e.g. won't always have it -it's a Microsoft font (licenses needed for others to use it)-, bundled with Windows since Windows 95 and Window NT.

If you only list one font and it's not available, odds are courier is going to be used by the browser ... Now you would not want that, would you ?

Generic fonts are defined here:
[w3.org...]

Secondly if you set it on e.g. a body it'll inherit on it's own with less load on the browsers ("*" matches any element, inheritance is supposedly faster - not that it'll make all that much of a difference IMHO)

So, I'd change that into e.g.:

body {
font-family: tahoma, "Myriad Pro", helvetica, sans-serif;
}


Thread source:: http://www.webmasterworld.com/css/3929989.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com