By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Firefox and IE Difference

P: 9
Once again i am stumped trying to get my page to work in both IE and Firefox.

http://pshift.nrgservers.net/indextest.html

In IE 6.0 the banner image works perfecting but in IE 7.0 and Firefox it of course fails me. Maybe i should just tell all my users to stick with IE 6.0...i'm 2 for 2 for doing it right in there!

Also, this CSS template i downloaded scales the body of the site to whatever resolution your monitor is on. Is their anyway i could edit it to basically stay at 1024 width and so the default blackground will just fill the sides on bigger resolutions?

I know its gotta be something in this line
Expand|Select|Wrap|Line Numbers
  1. <!-- zero margin = wide layout -->
  2. <body style="margin: 0;">
  3.  
Thanks in Advance
Apr 1 '07 #1
Share this Question
Share on Google+
9 Replies


drhowarddrfine
Expert 5K+
P: 7,435
The only way this would look right in IE6 but not the others is if it was designed using IE6 which is backwards from how it should be done; IE is just one big bug.

Validate and fix your html errors, though the missing class names are not a problem.

To get your content to center, you would normally just try margin:0 auto; in your css but this didn't work so there is more involved than I have time for right now.
Apr 1 '07 #2

P: 70
You may want to start with validating your script and then working from there.
Apr 1 '07 #3

P: 9
i've run it through http://validator.w3.org/ now and the only 2 errors (other then like 6 about one hyperlink...which i'm not sure i understand because its just the address of the link and the link works) are Align errors...i've added the align in using Dreamweaver to help center some object and as far as i know that's the only way to do it...
Still the image for my header has no errors yet still on firefox does not fix into the frame.
Apr 1 '07 #4

KevinADC
Expert 2.5K+
P: 4,059
have you tried removing this line from the .nav section of the style sheet:

Expand|Select|Wrap|Line Numbers
  1.     float: left;
Apr 1 '07 #5

P: 9
Just did and it just changed the nav buttons really. Unforunately i know nothing really of .CSS sheets and used this one as my guide. Orignally where the picture was there is just suppose to be text. there must be something i missing in the default.css file that controls the size on that space. Not really sure why IE6 adjust the header to fix the picture and yet Firefox, IE7 just totally let it overlap into the nav panel and body =(
Apr 1 '07 #6

P: 9
And as i post that it totally hits me to maybe go change the height of the header in the .css file to the height size of the banner and then BAM it works perfectly.

I know you guys are like "WHAT A NOOB" yeah its true....but just talking about it with all of you helps me learn more and more each time.

Thank You!
Apr 1 '07 #7

drhowarddrfine
Expert 5K+
P: 7,435
What a noob.
Apr 2 '07 #8

jhardman
Expert 2.5K+
P: 3,405
i've run it through http://validator.w3.org/ now and the only 2 errors (other then like 6 about one hyperlink...which i'm not sure i understand because its just the address of the link and the link works) are Align errors...i've added the align in using Dreamweaver to help center some object and as far as i know that's the only way to do it...
Still the image for my header has no errors yet still on firefox does not fix into the frame.
by the way, the several errors in the link are caused by the use of the ampersand which is supposed to be used to denote the beginning of a special character. The link should use "&amp;" in those cases (and will still work just as well). I believe it is feared that someone will pass a variable in the url like this:
[HTML]href="default.php?action=openSesame&copy=fromStart "[/HTML]and some browser will interpret the "&copy" as the copyright sign. Personally I grumbled quite a bit when this error came up on one of my pages with tabular data. Since each row of the data had a similar link and each link produced several errors, I had to fix all of them before I could even hope to find the real errors. I think the validator reported over 1000 errors. Top that!

Anyway, your site looks cool.

Jared
Apr 2 '07 #9

P: 70
Pretty nice design. It is not exactly my style but who cares because it seems to work pretty good.
Apr 2 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.