CSS not loading in netscape maybe?

  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

can someone take a look at this link in netscape:

http://www.vsssleep.com/faq.htm

It shows fine in IE, but in NS it appears as if there is no CSS to tell it where to go. I made all the pages the same way so it makes no sense that one won't won't work when the rest do.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Um, been looking for a bit and all I can think of is

Quote:
URI : http://www.vsssleep.com/common.css

* Line: 0 Context : .products

Invalid number : heightonly 0 can be a length. You must put an unit after your number : 75

URI : http://www.vsssleep.com/posfq.css

* Line: 0 Context : .txtfq

Invalid number : leftonly 0 can be a length. You must put an unit after your number : 155
* Line: 0 Context : .horizontalswffq

Invalid number : heightonly 0 can be a length. You must put an unit after your number : 150

from http://jigsaw.w3.org/css-validator/vali ... medium=all

I think IE assumes px if there are no units, all other browsers take it as invalid and skip the rule. If it's not that I'm stumped.

BTW, the xml thing at the top of the page is not needed and it throws IE into quirks mode. It's not a problem on this site but don't make a habit of using it else it will throw out all the box model stuff.

tantek celik mentions it in the Addendums on this page
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

rtm223 wrote:
I think IE assumes px if there are no units, all other browsers take it as invalid and skip the rule.

Serious? I thought it was ok to code like "margin:0". Does this screw up on other browsers? *I've got a bit to learn...*
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

gsv2com wrote:
rtm223 wrote:
I think IE assumes px if there are no units, all other browsers take it as invalid and skip the rule.

Serious? I thought it was ok to code like "margin:0". Does this screw up on other browsers? *I've got a bit to learn...*

It's ok if its a zero, hence what the validator says:
Quote:
only 0 can be a length. You must put an unit after your number : 75

because 0px == 0% == 0em but 75px != 75% != 75em

IE assumes px for any missing unit, which is just another case of IE encouraging sloppy code :roll: I tend to use 0px, because it keeps me in the habit of using units. I think in this case it is the
Code: [ Select ]
left:155;


is being interpreted by IE as 155px, but other browsers are ignoring it. I'm not certain this is the case, but I think so and It would explain the overlapping text.
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

Thanks for clearing that up rtm. I've been leaving off the px on zeros to cut as many bytes as I can from my code.
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

thx rtm, that was the answer :)

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.