Click to See Complete Forum and Search --> : Different positioning in ie and FF/Opera
Reddox
11-16-2006, 09:21 PM
First things first. Yes I have validated my CSS.
My problem is, that my site show slightly different in IE6 vs Opera/FF.
To illustrate my problem I have a screenshot here:
Picture (http://www.famweb.rddox.com/wtf.png)
The left one is IE, the right one is FF/Opera
Source (http://www.famweb.rddox.com/index.php)
CSS (http://www.famweb.rddox.com/style.css)
ray326
11-16-2006, 10:15 PM
These dupes might be interfering with the selectors.
line 64 column 25 - Warning: <img> escaping malformed URI reference
line 69 column 7 - Warning: <div> anchor "news" already defined
line 70 column 1 - Warning: <div> anchor "news2" already defined
line 71 column 1 - Warning: <h4> anchor "title" already defined
line 79 column 25 - Warning: <img> escaping malformed URI reference
line 81 column 1 - Warning: <p> anchor "lesmer" already defined
Reddox
11-16-2006, 10:36 PM
So, if I clear up the warnings in the CSS validator, it might work?
drhowarddrfine
11-16-2006, 11:10 PM
You are only allowed one id per page. Those are actually errors. Also, you are missing end tags according to the CSS validator. But you could have found this yourself had you validated the code yourself.
Reddox
11-17-2006, 08:56 AM
Hmm, I validated the CSS. And it was approved. That's really weird.
What do you mean by one id per page. That I can't use the same ID twice on a page?
thanks for the quick replies :)
drhowarddrfine
11-17-2006, 10:01 AM
I don't know what validator you are using but the W3C validator fails your html and css. Yes, I do mean you can only use one id per page. ids are unique to one element only. If you wish to use the same name for multiple elements, use 'class' instead.
Reddox
11-17-2006, 10:11 AM
Ok. Thanks, I'll fix the IDs.
I checked my CSS again in the W3 validator, and it passed. Just as it did when I checked it yesterday. I got some warnings, but it passed.
I know the xhtml doesn't pass, it's because of the blog system I use.
drhowarddrfine
11-17-2006, 01:37 PM
It doesn't pass, it just can't get check thoroughly until you fix the html.
Reddox
11-18-2006, 10:41 PM
I've validated the css separately, and it passed. I know of the problem you are talking about, but if you go to the W3 CSS validator and type in the adress of my CSS (www.famweb.rddox.com/style.css) it will approve it.
Reddox
11-18-2006, 11:22 PM
ok it's fixed now. The css should validate any way you try it
Reddox
11-18-2006, 11:47 PM
Ok, both the xhtml and the css is approved. But the site still has the same faults in FF and Opera
drhowarddrfine
11-19-2006, 10:09 AM
Thank you. It's hard enough debugging working code than trying to figure out code with errors.
Remember that absolutely positioned elements are removed from the normal flow. IE is NOT honoring this for some reason.
Also, you positioned:relative #logo which FF is properly relocating but you are expecting your navigation to move down also. That won't happen. I would just remove position:relative from that to properly line up your nav buttons. Then you can widen menylinje2 and decrease the top value to position it in the center but you'll have to work on the divs above and below that to make room for it.
Reddox
11-19-2006, 07:43 PM
Thank you so much. Sorry about the code errors. Although the CSS was ok the whole time. I'll try out your tips
drhowarddrfine
11-19-2006, 09:37 PM
I edited this line above:
IE is NOT honoring this for some reason.