Basically, this is my layout:
CODE
-------------------------------------------------------------------------------------
| | |
| header | |
| ----------------------------------------------------------------- | |
| | right |
| content | area |
| | |
| | |
| | |
| | |
| | |
-------------------------------------------------------------------------------------
| | |
| header | |
| ----------------------------------------------------------------- | |
| | right |
| content | area |
| | |
| | |
| | |
| | |
| | |
-------------------------------------------------------------------------------------
html
CODE
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/groenewijzer/css/style.css" type="text/css" />
</head>
<body>
<div id="main_wrapper">
<div id="right_column">
<div id="h_arrow"> </div> <!-- einde h_arrow --> <br />
<div id="right"><jdoc:include type="modules" name="right" style="xhtml" /></div> <!-- einde right -->
<div id="user4"><jdoc:include type="modules" name="user4" style="xhtml" /></div> <!-- einde user4 -->
</div> <!-- einde right_column -->
<div id="header">
<div id="h_top"> </div> <!-- einde h_top -->
<div id="h_middle"><span id="title">De Groene Wijzer</span></div> <!-- einde h_middle -->
<div id="h_bottom">
<table cellpadding="0" cellspacing="0">
<tr>
<td id="pill_l"> </td>
<td id="pill_m"><jdoc:include type="modules" name="user3" /></td>
<td id="pill_r"> </td>
</tr>
</table>
</div> <!-- einde h_bottom -->
</div> <!--einde header -->
<div id="content">
<jdoc:include type="component" />
<div id="footer" class="clear">
<jdoc:include type="modules" name="footer"/>
</div> <!-- einde footer -->
</div> <!-- einde content -->
</div> <!-- einde main_wrapper-->
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/groenewijzer/css/style.css" type="text/css" />
</head>
<body>
<div id="main_wrapper">
<div id="right_column">
<div id="h_arrow"> </div> <!-- einde h_arrow --> <br />
<div id="right"><jdoc:include type="modules" name="right" style="xhtml" /></div> <!-- einde right -->
<div id="user4"><jdoc:include type="modules" name="user4" style="xhtml" /></div> <!-- einde user4 -->
</div> <!-- einde right_column -->
<div id="header">
<div id="h_top"> </div> <!-- einde h_top -->
<div id="h_middle"><span id="title">De Groene Wijzer</span></div> <!-- einde h_middle -->
<div id="h_bottom">
<table cellpadding="0" cellspacing="0">
<tr>
<td id="pill_l"> </td>
<td id="pill_m"><jdoc:include type="modules" name="user3" /></td>
<td id="pill_r"> </td>
</tr>
</table>
</div> <!-- einde h_bottom -->
</div> <!--einde header -->
<div id="content">
<jdoc:include type="component" />
<div id="footer" class="clear">
<jdoc:include type="modules" name="footer"/>
</div> <!-- einde footer -->
</div> <!-- einde content -->
</div> <!-- einde main_wrapper-->
</body>
</html>
CSS
CODE
body {
background-color: #316b16;
font: normal 12px arial;
}
#main_wrapper {
background-color: #FFF;
border: 1px solid #000;
margin: auto;
padding: 5px;
width: 90%;
}
a img {
border: 0;
}
a, a:visited {
color: #4A4;
}
a:active, a:hover {
color: #383;
}
.small {
font-size: 10px;
}
.clear {
clear: both;
}
td.contentheading {
font: bold 14px arial;
}
td.createdate {
font-size: 10px;
}
td.modifydate, td.createdate {
padding: 0px;
margin: 0px;
font: normal 8px arial;
color: #AAA;
}
#header {
clear: none;
}
#h_top {
height: 45px;
background-color: #FFF;
margin: 0px 192px 0px 0px;
padding: 0px;
border-right: 1px solid #d4f36a;
}
#h_middle {
background-color: #d4f36a;
height: 60px;
margin: 0px 192px 0px 0px;
padding: 0px;
text-align: center;
}
#h_middle #title {
font: bold 40px arial;
color: #8a4;
position: relative;
top: 10%;
}
#h_bottom {
height: 45px;
text-align: center;
background-color: #FFF;
margin: 0px 192px 0px 0px;
border-left: 1px solid #d4f36a;
border-right: 1px solid #d4f36a;
padding: 0px;
text-transform: uppercase;
}
#h_bottom table {
margin-top: 5px;
margin-left: auto;
margin-right: auto;
}
#pill_l {
width: 23px;
height: 34px;
background: url(../images/pill_0_0.png) no-repeat;
}
#pill_m {
background: url(../images/pill_0_2.png) repeat-x;
}
#pill_r {
width: 23px;
height: 34px;
background: url(../images/pill_0_3.png) no-repeat;
}
#h_bottom ul {
margin: 0px;
padding: 0px;
}
#h_bottom li { /*Reserved for top menu*/
vertical-align: 50%;
font-weight: bold;
display: inline;
list-style: none;
margin-right: 10px;
padding-left: 5px;
border-left: 1px solid #793;
}
#h_bottom a, #h_bottom a:visited {
color: #793;
text-decoration: none;
}
#right_column {
float: right;
}
#h_arrow {
background: url(../images/arrow.gif) no-repeat;
width: 192px;
height: 150px;
margin: 0px;
padding: 0px;
}
#user4, #right {
padding: 5px 3px 5px 7px;
}
#user4 *, #right * {
max-width: 182px;
}
#content {
padding: 5px;
margin-right: 192px;
border-left: 1px solid #d4f36a;
border-bottom: 1px solid #d4f36a;
border-right: 1px solid #d4f36a;
}
#footer {
font: 8px italic arial;
text-align: center;
}
background-color: #316b16;
font: normal 12px arial;
}
#main_wrapper {
background-color: #FFF;
border: 1px solid #000;
margin: auto;
padding: 5px;
width: 90%;
}
a img {
border: 0;
}
a, a:visited {
color: #4A4;
}
a:active, a:hover {
color: #383;
}
.small {
font-size: 10px;
}
.clear {
clear: both;
}
td.contentheading {
font: bold 14px arial;
}
td.createdate {
font-size: 10px;
}
td.modifydate, td.createdate {
padding: 0px;
margin: 0px;
font: normal 8px arial;
color: #AAA;
}
#header {
clear: none;
}
#h_top {
height: 45px;
background-color: #FFF;
margin: 0px 192px 0px 0px;
padding: 0px;
border-right: 1px solid #d4f36a;
}
#h_middle {
background-color: #d4f36a;
height: 60px;
margin: 0px 192px 0px 0px;
padding: 0px;
text-align: center;
}
#h_middle #title {
font: bold 40px arial;
color: #8a4;
position: relative;
top: 10%;
}
#h_bottom {
height: 45px;
text-align: center;
background-color: #FFF;
margin: 0px 192px 0px 0px;
border-left: 1px solid #d4f36a;
border-right: 1px solid #d4f36a;
padding: 0px;
text-transform: uppercase;
}
#h_bottom table {
margin-top: 5px;
margin-left: auto;
margin-right: auto;
}
#pill_l {
width: 23px;
height: 34px;
background: url(../images/pill_0_0.png) no-repeat;
}
#pill_m {
background: url(../images/pill_0_2.png) repeat-x;
}
#pill_r {
width: 23px;
height: 34px;
background: url(../images/pill_0_3.png) no-repeat;
}
#h_bottom ul {
margin: 0px;
padding: 0px;
}
#h_bottom li { /*Reserved for top menu*/
vertical-align: 50%;
font-weight: bold;
display: inline;
list-style: none;
margin-right: 10px;
padding-left: 5px;
border-left: 1px solid #793;
}
#h_bottom a, #h_bottom a:visited {
color: #793;
text-decoration: none;
}
#right_column {
float: right;
}
#h_arrow {
background: url(../images/arrow.gif) no-repeat;
width: 192px;
height: 150px;
margin: 0px;
padding: 0px;
}
#user4, #right {
padding: 5px 3px 5px 7px;
}
#user4 *, #right * {
max-width: 182px;
}
#content {
padding: 5px;
margin-right: 192px;
border-left: 1px solid #d4f36a;
border-bottom: 1px solid #d4f36a;
border-right: 1px solid #d4f36a;
}
#footer {
font: 8px italic arial;
text-align: center;
}
and this is the problem:

As soon as I add the "right_colum", my header shrinks a few pixels in IE6, changing the margin-left doesn't help, the header (and it's content) won't grow.
It works in every other browser, IE7, FF, Opera, Safari ... except IE6, IE5.x
Anyone has an idea how to fix this ?
Ps. using tables is not an option !


