PDA

View Full Version : Netscape 4.7 woes


Philip M
03-09-2003, 11:08 AM
The follwing works fine in IE and Opera

<div align=center>
<p style = 'font-family:Arial;color:#000080; font-size:28px;font-weight:bold'>You can get it <i>quickly</i> from your friendly dealer!</style></p>
</div> <br>


It does not render in Netscape 4.7 - I think that is because I need to define <style="text/css">, but how do I add this in?

Also, does the text render properly in Netscape 6 or 7?

Is it possible to alter the colour (sorry - color!) of the italic word "quickly"?

Nightfire
03-09-2003, 01:02 PM
Take the </style> tag out and try using double quotes instead of single ones


and for the colouring of the <i>
<style>
i{
color:blue;
}
</style>

redhead
03-09-2003, 01:27 PM
im not 100% sure about this... hopefully someone will correct me if im wrong - but methinks you shouldnt put spaces between the attributes and their values?

eg <div style=""> not <div style = "">

would that create problems in netscape 4.7?

Philip M
03-09-2003, 02:32 PM
Very many thanks, problem solved!

brothercake
03-09-2003, 06:08 PM
Originally posted by redhead
methinks you shouldnt put spaces between the attributes and their values?

That's actually allowed in HTML - you can go

< div class = " classname " >

But it does look weird; and it's not allowed in XHTML.