Apologies for my poor English writing :) I am attempting to float two divs side by side in a fixed position, without using percentages. This code works well on most browsers but is not compatible with IE 6.
HTML
<div class="right"></div>
<div class="top"></div>
<div class="main">
<div class="content"></div>
</div>
CSS
body {
margin-top: 0;
padding: 0;
width: 100%;
height: 100%;
position: relative;
}
.right {
width: 200px;
height: 100%;
float: right;
position: fixed;
right: 0;
top: 0;
bottom: 0;
background-color: #ccc;
z-index: 5;
}
.main {
position: fixed;
float: right;
height: 100%;
right: 200px;
left: 0;
bottom: 0;
top: 50px;
background-color: red;
display: inline;
z-index: 1;
}
.top {
position: fixed;
float: right;
right: 200px;
left: 0;
bottom: 0;
top: 0px;
background-color: yellow;
clear: left;
}