W3C home > Mailing lists > Public > www-style@w3.org > August 1999

When font-size and font size collide

From: James Green <www-style@cyberstorm.demon.co.uk>
Date: Tue, 17 Aug 1999 18:14:41 +0100 (BST)
To: www-style@w3c.org
Message-ID: <Pine.LNX.4.10.9908171803170.3833-100000@cyberstorm.demon.co.uk>

I've been constructing this new site which is generated by php scripts,
and since pages are done on-the-fly from a database, CSS is being used to
keep all styles consistent.

On the front page I'm using a normal p tag which is defined as arial size
10pt. This works great, but when I do:

<p><font size="+2">This should be bigger</font

the text stays at 10pt. Now, my interpretation of inheritance (which I've
not read up on to any large extent) is that the closest-instruction to the
object is obeyed, i.e. the P tag's 10pt, which gets overridden by the font

The problem occurs in Netscape Communicator 4.6. Since I use Linux, I
can't test in IE, but bearing in mind that no browser is yet fully
CSS-functional, I thought it best to ask you guys what the proper system
is and implement it ready for Mozilla 5. If I can be backward compatible I
will be, but not if I have to generate a lot of CSS and font tags

I can use <p style="font-size: 14pt">This is bigger</p> but this seems
like an uneccessary waste of bytes...

Any thoughts?

James Green
Site Manager,
LinuxNewbie.com (LNC)
Received on Tuesday, 17 August 1999 15:34:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:51 UTC