Hey, i'm trying to get three divs vertically aligned with each other properly.
Here is the div css styling:
Code:
#left-box
{
float:left;
border:1px solid green;
width:300px;
}
#middle-box
{
text-align:left;
border:1px solid green;
margin-left:380px;
width:500px;
}
#right-box
{
border:1px solid green;
width:300px;
position:relative;
top:-82px;
left:940px;
top:-110px\9;
}
The problem happens with #right-box. When I use #left-box and #middle-box in my HTML, they both are vertically aligned. But when I use #right-box, it appears under the #left-box and #middle-box. I can solve this problem using position:relative and top, but that requires me to use css hacks for IE. Is there a cleaner and more proper way of doing this?
Thanks for your help everyone!