Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

style sheets in Netscape 7

Status
Not open for further replies.

peterswan

Programmer
Sep 25, 2002
263
US
Hello,

Does anyone know why my style sheets aren't showing up in Netscape 7, but are fine in IE?

Thanks for any help,

[smile] [smile] [smile]

Peter

 
Peter,

Although it is entirely possible that Lord Elvis has decreed your stylesheets be Not Visible, I cannot know for sure. I should inform you that my Mind Reading certificate has expired.

So, there is a line in your code that specifies your stylesheet. Please copy that line from your code to here.

Or pray to Elvis for guidance. He is, after all, still the King.

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Hi Edward,

Here it is:

<link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;>

Nothing at all in here about Elvis.

[smile] [smile] [smile]

Peter Swanson
 
Is the name of your stylesheet &quot;style.css&quot; or &quot;Style.css&quot; or &quot;Style.CSS&quot; or any other case-insensitive permutation of these letters? IE is promiscuous about case, but most other browsers (and most servers) know the difference between &quot;style.css&quot; and &quot;Style.css&quot; and won't confuse 'em.

Is the stylesheet in the exact same directory as the index.html file from which the above code is extracted?

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
And, although it ought not to matter, you might consider closing that tag:

Code:
<link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;></link>

Just keeping the ducks in a row...

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Hi Edward,

Yes, I spelled it correctly, including case. It is named &quot;style.css&quot; and is located in the same folder as the index.html file.

Again, it looks fine on IE but none of the style sheet information shows up in Netscape 7.

Here is the code for the style sheet page:

body{
margin-left: 1 px;
margin-top: 0 px;
}
input {
font-size: 8 pt;
}
body{
margin-top: 0 px;
}
.services_box{
font-size: 10 pt;
font-family: verdana;
padding: 5 px;
color: white;
}
.copyright{
font-size: 7 pt;
font-family: verdana;
}

Thanks,

[smile] [smile] [smile]

Peter Swanson
 
This issue has been solved at
The solution was to take out the space between the number and the unit. So 10 pt becomes 10pt.

And now it works fine in both Netscape and IE.

Much thanks to Edward for his help.

I do think Elvis had something to do with it.

[cheers]

Peter Swanson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top