Hey everyone,
It's a bit unusual for me to post in the html section. However I am stumped as to why I have three divs. One aligned to the left and two aligned to the right and when I add the third div aligned to the right, the left div goes down along with the second right div that's aligned to the right. I'm not sure why my left div wont go all the way to the top right next to the first right aligned div. Help please?
here is the div aligned to the left in css
.sidebar {
padding:0;
float:left;
width:280px;
background-color: #fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #000;
}
Here is the first div aligned to the right the should be right beside the left div..
.mainbar {
margin:0;
padding: 0px;
float: right;
width: 653px;
background-color: #fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
and finally here is the third div aligned to the right, underneath the .mainbar div.
.mainbar2 {
margin-top: 10px;
padding:0px;
clear: both;
float: right;
width:653px;
background-color: #fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #000;
}
Thanks for any help. this is probably an easy fix, I just don't see it yet..