css issue with mozilla

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

css issue with mozilla

Post by itsmani1 »

i am working on pure css page, it works fine in IE but creates problem with horizental bar, here is page url
http://work.hostbreak.com/sws/stage3/3d_CGI_HDRI_0.html

when i check this in IE it works fine, but on mozilla it gives me horizental scrollbar, please help me.

thanx
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

First things first, you cannot expect consistent results across multiple browsers without using compliant HTML. So, get your html to validate:

http://validator.w3.org/check?verbose=1 ... DRI_0.html

Second, you have the same stylesheet (style.css) triggering twice, not sure why.

Third, the problem is in #contact, where you have an absolute position, shifted left by 89 pixels, AND 100% width. So of course it will be 100% of the screensize + 89 pixels. Reduce the 100% width there, and it fits fine.
Post Reply