4 replies [Last post]
mini
Offline
Regular
Last seen: 15 years 46 weeks ago
Joined: 2004-09-27
Posts: 24
Points: 0

My site looks terrible in Netscape 4 and I wanted it to look like a list of nice formatted text with no pictures.
How do people get the sites to render nicelly?
Is there a bit of code at the top or is just a different style sheat that is pict up by Netscape.
Or is it something to do with the clear all property.
Have not got a clue?

Have you?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 21 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Netscape text version

Hi mini,
Most people use @import to hide styles from NN4.
You then set up basic styles that NN4 and older browsers can see and override them using @import to give newer browsers better style.

Hope that helps

mini
Offline
Regular
Last seen: 15 years 46 weeks ago
Joined: 2004-09-27
Posts: 24
Points: 0

Netscape text version

How do you detect the browser and import the write one?

Is it something like:

<link href="layout.css" rel="stylesheet" media="screen" type="text/css" />
<link href="print.css" rel="stylesheet" media="print" type="text/css" />

and them an if statement???

God I really don't know!

Any tutorials or examples out there?

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 21 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Netscape text version

Hi mini,
No not quite.
What you do is have to stylesheets one basic one for all browsers.
You put that one in a link like <link href="layout.css" rel="stylesheet" type="text/css" /> Then after it or in the layout.css file you use @import to import styles to advanced for netscape 4.
If you do it after the link tag you use

<style type="text/css"> 
@import url("modern.css"); 
</style>

Hope that makes it clearer

mini
Offline
Regular
Last seen: 15 years 46 weeks ago
Joined: 2004-09-27
Posts: 24
Points: 0

Netscape text version

Hello
Thank you very much I changed the
<link href="layout.css" rel="stylesheet" type="text/css" />

for

<style type="text/css">@import url("images/layout.css");body {
background-color: #FFFFFF;
}
</style>

and it works fantastically well in Netscape 4.

Thank you very much.