css for new sidebar
-
I’m messing around with the css to make a new sidebar on the left (in addition to the one on the right), but the float: left; isn’t working right. It floats the new sidebar on the left, the content in the center, and then the old sidebar with float: right; on the bottom below all the text. Can someone give me some help as to how to float both sidebars properly?
Here’s what I have so far:Right sidebar
#sidebar {
width:25%;
float:right;
padding:0 0 0 15px;
color:#000000;
line-height:1.5em;
margin:0 0 16px 0;
overflow:hidden;
border-right-width: 12px;
border-left-width: 1px;
border-right-style: solid;
border-left-style: solid;
border-right-color: #fff;
border-left-color: #333333;
}Now left sidebar
#sidebar2 {
width:25%;
float:left;
line-height:1.5em;
overflow:hidden;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #333333;
}
- The topic ‘css for new sidebar’ is closed to new replies.