Forum Moderators: not2easy
Managed to get it work in IE. However, FF then extende the content DIV a little further to the right.
Please look at my code below and kindly advice how i can have it uniform accross browsers...
CSS
<style type="text/css">
#container{width:80%; height:100% auto; margin:0 auto; border:0;}
#header{width:80%; background-color:pink;height:30%; background-image:url(image.jpg); padding:4px;}
#menu{width:15%; background-color:blue; height:100%; float:left; border-left:double blue; border-right:double blue; padding:4px;}
#content{width:65%; background-color:white; height:100%; float:left; padding:4px;}
#footer{width:80%; background-color:green; height:5%; float:left; clear:both; padding:4px;}
.menu a{display:block; background-color:white; text-decoration:none; text-align:center;}
.menu a:hover{display:block; background-color:yellow; text-decoration:none;}
.menu a:visited{display:block; text-decoration:none;}
body{background-color:gray;}
</style>
HTML
<body>
<DIV id="header"></DIV>
<DIV id="menu">
<br>
<p class="menu"><a href="#">menu1</a>
<p class="menu"><a href="#">menu2</a>
<p class="menu"><a href="#">menu3</a>
</DIV>
<DIV id="content">
<center>
<p>Bla bla bla bla...
</center>
</DIV>
<DIV id="footer"></DIV>
</body>
</html>
In the head section of your html:
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->
style.css then gets what you need for FF, opera, safari , chrome, ...
ie6.css is what's needed to make IE6 behave (it goes on top of what is in style.css)
Ditto for IE7, it's independent form what IE6 gets (the bugs in both tend to differ)
You can also use the <style> tags instead of the external files, depends on how many pages share the same CSS which is better.