Using DIV and relative positions in CSS to have elements scale properly
Basically, what I want is to have three elements; a top title element, a left side element and a main element. the main and left elements should be the same distance below the bottom of the top element. The code I have at the moment is a little inelegant, arrived at through experimentation in FF and it doesn't work in IE...
Am I missing something obvious?
Code:
body{background:#9BF8FF;
}
DIV{
background:#9BFF82;
color:#364BE1;
position:relative;
font-weight:bold;
}
DIV.title{
height:15%;
width:90%;
top:5%;
left:5%;
text-align:center;
font-size:x-large;
}
DIV.left{
height:70%;
width:15%;
top:10%;
left:5%;
}
DIV.main{
height:70%;
width:70%;
top:-60%;
left:25%;
}