I'd like to have two dividers, side by side, of different widths at equal distances away from each and away from the edges of the page depending on the screen size.
So the code looks like this,
<div id="bodymain">
<div id="main">
</div>
<div id="sidebartop">
</div>
</div>
#bodymain{
position:absolute;
margin-top:100px;
margin-left:30px;
margin-right:30px;
right:0;
left:0;
height:1000px;
background-color:white;
z-index:0;
}
#main{
position:relative;
display:inline-block;
float:right;
margin-top:30px;
margin-bottom:30px;
margin-right:30px;
margin-left:auto;
height:940px;
width:700px;
background-color:red;
z-index:999;
}
#sidebartop{
position:relative;
display:inline-block;
float:left;
margin-top:30px;
margin-bottom:30px;
margin-right:auto;
margin-left:30px;
height:100px;
width:200px;
background-color:blue;
z-index:999;
}
Basically, I want the two dividers to auto detect the size of the screen and adjust to it correctly and be a certain distance from each side their respective edge of the screen, while maintaining a distance of at least 50px in-between. The size of the two dividers themselves do not matter; what matters is there distance from the edges of the screen, their distance from each other, and that the div on the left is supposed to be about 1/3 the width of the div on the right.
Sorry if this worded poorly, I'm having a hard time figuring out how to write out what I want at the moment.
Thanks in advance for any help.