CSS/DIV Sidebar Problems

Soldato
Joined
2 May 2004
Posts
19,950
Code:
<style type="text/css">
body 
{
  margin:0;
  padding:0;
}

div.sidebar
{
  position: absolute;
  top:0;
  background-color:#FFFFFF;
  height:100%;
  width:130px;
  padding-top:5px;
}

div.content
{
  padding-left:135px;
}
</style>

<div class="sidebar">
  sidebar content
</div>

<div class="content">
  main content
</div>

So as you can see, whatever's in the sidebar div goes in a 130px sidebar, whatever's in the content div goes to the right of that.

Now the problem is that in a few sites the sidebar shows up right in the middle of the page on Interweb Explorer.

Is there any 'hack' or something I can use to sort this please?

Thanks
Craig.
 
Back
Top Bottom