despite my urge to not make my website compatible with IE6 (they should have switched to something better by now!), I have to.
However, this is causing me lots of problems
my design is based almost entirely on iframes & div layers. The div layers aren't aligning properly in IE6 at all.
At first, they weren't working in IE7 or 8 either until I added doctype tag.
Also, the iframes—whose height (100%) is now actually working in IE7 and 8—won't appear at all in IE6.
Any thoughts? What could be causing this? What should I do?
It seems pretty clear that the answer lies in either something very fiddly and minute or in javascript somewhere, which I don't know very well.
Any help would be appreciated.
Here is the relevant part of my code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="library/style.css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<div id="sidebar1" style="position:fixed; top:190px; left:20px; width:140px">
<p align="right" class="largewhite"><a href="camp.htm" target="iframe">Camp</a></p>
<p align="right" class="largewhite"><a href="class.htm" target="iframe">Classes</a> </p>
<p align="right" class="largewhite"><a href="camp2.htm" target="iframe">Registration & Info</a>
<p align="right" class="largewhite"><a href="faculty.htm" target="iframe">Faculty</a> </p>
<p align="right" class="largewhite"><a href="testimonials.htm" target="iframe">Testimonials</a>
</div>
<div id="iframe"; style="position:absolute; left:181px; top:80px; bottom:24px; right:0px; overflow="auto"; z-index:3">
<iframe name="iframe"; id="iframe"; src="/campclassinfo.htm"; ALIGN="top"; HSPACE="0"; VSPACE="0"; frameborder="0"; style="height:100%;min-height:400px;bottom:0px;width:100%;border:0;frameborder:0"; allowtransparency="true">
</iframe>
</div>
<div id="base" style="position:fixed; bottom:0px; left:0px; right:0px; height:24px; background-image: url(/library/images/btm_bar.gif); background-repeat:repeat"></div>
</body>
</html>
Basically, in IE6, the sidebar aligns with the top of the page instead of where it's supposed to be (190px from the top) and the iframe won't appear at all.