Can anyone help me with a shift in the design for the following. Unfortunately, I am constrained to a Joomla template – and I can’t work out what to do to get IE6 to behave. I have stripped the html as far back as I can to reveal the issue: a gap appearing.
Here is the page [URL=”http://www.ashby-design.co.uk/littees/testing2.html”]http://www.ashby-design.co.uk/littees/testing2.html
Attached is an image to show the IE6 issue – notice the small white gap (denoting the div#wrapper) appearing between the left column (red) and the #main2 (yellow) div. This does not appear on compliant browsers.
[B]Here’s the HTML (body only)
[code=html]
<body>
<div id=”all”>
<div id=”header”>
<div class=”wrap”> </div>
</div><!– end header –>
<div id=”contentarea2″>
<div id=”left”>
</div><!– left –>
<div id=”wrapper”>
<div id=”main2″>
</div><!– end main or main2 –>
<div class=”wrap”></div>
</div><!– wrapper –>
</div><!– contentarea –>
<div id=”footer”>
<p class=”syndicate”>
Website Credits | <a href=”../” target=”blank” title=”Credits”>ashbydesign</a>
</p>
<div class=”wrap”></div>
</div><!– footer –>
</div><!– all –>
</body>
[B]And here’s the CSS:
*
{
margin: 0;
padding: 0;
}
#contentarea, #contentarea2, #main, #main2 { zoom: 1; }
#header { width: auto; height: 1%; }
body
{
color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 100.1%;
padding: 0px;
text-align: center;
background-color: #000;
}
/* ################ Position ################
#all
{
color: #000;
font-size: 0.8em;
line-height:1.4em;
margin: 0 auto;
max-width: 1000px;
padding: 0;
text-align: left;
}
#header {
height: 100px;
background-color: #ccc;
}
#contentarea,#contentarea2 {
margin:0;
padding:0;
position: relative;
overflow: hidden;
background-color: blue;
}
#wrapper {
margin: 0 0 0 21%;
background-color: white;
}
#left {
height: 500px;
float: left;
margin: 0;
width: 21%;
background-color: red;
}
#main, #main2 {
height: 400px;
margin: 0;
padding: 0 30px 20px 30px;
position: relative;
background-color: yellow;
position: relative;
}
.wrap
{
border: 0;
clear: both;
float: none;
font-size: 1px;
height: 0px;
line-height: 1px;
margin: 0;
padding: 0;
visibility: hidden;
}
[upl-file uuid=0d905e2a-22f5-4465-b33f-7e94dc88c0bb size=1kB]IE6-testing.gif