I got my site to look the way I want in IE 5.0 and Mozilla. However, now I also have access to IE 6 and when I viewed the site in that browser, it didn't look good.
Don't have access to IE 6 right at this moment, but I assume part of your problems might be this in your page
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
While this is entirely correct, there is an IE 6 bug that makes it parse a STRICT doctype in "quirks"-mode if you place the <?xml?> declaration on the page.
Since the xml declaration is entirely optional you might as well leave it out to work around this IE/win 6 bug.
As long as you have the XML NameSpace in there as well as a meta tag for the charencoding you will be fine anyway
Thanks for that tip Stefan. Actually I took out my XML declaration and the application/xml+xhtml content-type as I was getting XML output instead of HTML, which I thought maybe due to that, but your tip is handy.
Originally posted by Klyve1 Have you changed this now as it looks the same in IE6 and Mozilla.
Are you talking to me? If so, no, I haven't changed anything yet and it does not look the same in IE 6 and Mozilla.
Stefan: You actually helped me with this (about taking advantage of IE CSS parsingbugs) in the old forum. I don't quite remember how it worked, so could you please tell me which value is read by which browser?
Originally posted by J.Karlsson Stefan: You actually helped me with this (about taking advantage of IE CSS parsingbugs) in the old forum. I don't quite remember how it worked, so could you please tell me which value is read by which browser? [/B]
First you should remove that <xml> declaration as I said.
I've been playing around with this for a while now, and I noticed the following:
When removing the <xml> tag, in IE6, the big white div and the yellow bar below it (.innehall and .sidfot) jumped down below the left-hand menu. With the <xml> tag, it looked better -- not perfect, but at least the stuff was close to where I want it!
Another thing was...here's a piece of code by the way (it's the code for the top yellow bar):
When I changed the second width value (702px), the yellow bar got shorter both in IE6 and Mozilla (in IE6 I got the width I wanted, but in Mozilla it was too short).
I have uploaded the files to my site, and they are at...
Originally posted by J.Karlsson
.sidhuvud2
{
width:713px;
voice-family:"\"}\""; voice-family:inherit;
width:702px;
}
html>div .sidhuvud2 { width:713px; }
When I changed the second width value (702px), the yellow bar got shorter both in IE6 and Mozilla (in IE6 I got the width I wanted, but in Mozilla it was too short).
Crap sorry, I didn't notice you hade made a change in the CSS that breaks it (I just made a cut an paste).
html>div
should be
html>body
ALWAYS
ie in your case
html>body .sidhuvud2
or
html>body div.sidhuvud2
Bookmarks