Previous Message
Next Message

Universal Selector for Font Declarations?

Sent by David Dorward on 1 March 2005 21:09


On Tue, 1 Mar 2005 15:18:31 -0600, Clinton Gallagher
[EMAIL-REMOVED]> wrote:

> Any comments pro or con with regard to using a universal selector to declare
> a default font size and font family for all elements that may be used by a
> page? I wonder if doing so might be problematic with browser bugs?

It would be problematic with the design of CSS.

> * { font-size: 80%;

<html> - 80% of user's preference
<body> - 80% of 80% of user's preference
<p> - 80% of 80% of 80% of 80% of user's preference
<a> - 80% of 80% of 80% of 80% of 80% of user's preference
etc.

By the time you get to the anchor you are at 32% of the user's
preference. I can't read four pixel high text, and I doubt you'll find
many people who can.

(and that's on top of  the usual issues of setting the default font
size to small then the user's preference.)

>     font-family: verdana, arial, sans-serif; }

You really want your <pre> and <textarea> elements in a non-monospace font?

-- 
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: