Re: ummm...

by "Comharsa" <comharsa(at)clara.net>

 Date:  Tue, 13 Jun 2000 09:35:02 +0100
 To:  "HWG - Techniques" <hwg-techniques(at)hwg.org>
 References:  jps pauls
  todo: View Thread, Original
From: "Paul Roberts" <roberts_paul(at)bigfoot.com>

> No, It displays red with Helvetica in IE5, you can't mix CSS and font
tags.
> The font tags
> override the CSS rules.

You can mix them, it depends on the positioning. The reason the example
given didn't work is that the font tags were inside the body tags so took
precedence.

Try this example:

<head>
<style>
p {
 color: #000000;
}
</style>
</head>
<body>
<p><font color="#FF0000">test</font></p>
</body>

As the font tag is inside the p tag it affects the text. However, put the
tags the other way round:

<head>
<style>
p {
 color: #000000;
}
</style>
</head>
<body>
<font color="#FF0000"><p>test</p></font>
</body>

and the style tag takes precedence.

Brian
comharsa(at)clara.net

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA