Sidebar problem
-
Hi all,
I’m using the Vertigo Electrified theme and changed it a bit to my liking. Now I want one of the two sidebars that are now on the right, moved to the left. I tried playing around with the ‘float:’ in the css and the padding and margin, but i’m not getting it. (url: https://www.tennispraat.nl)
I can get the main content to the center of the page, and have 1 sidebar on the right, but the one that should go to the left don’t show up or moves under the postings. This is the code in the css (for as far it has to do with content and the sidebars. Note that ‘contentleft’ has to do with how the postings are displayed.
/************************************************
* Content *
************************************************/#content {
width: 96%;
margin: 0px auto 0px;
padding: 0px;
}#content p{
padding: 0px 0px 15px 0px;
margin: 0px;
line-height: 20px;
}#content h1 {
color: #000000;
font-size: 22px;
font-family: Century Gothic, Verdana, Arial, Sans-Serif;
font-weight: normal;
margin: 15px 0px 0px 0px;
padding: 10px 0px 10px 0px;
border-top: 2px solid #000000;
}#content h1 a {
color: #000000;
text-decoration: none;
}#content h1 a:hover {
color: #910156;
text-decoration: none;
}#content p img{
float: left;
border: none;
margin-right: 15px;
margin-bottom: 10px;
}#content h2 {
color: #000000;
font-size: 22px;
font-family: Century Gothic, Verdana, Arial, Sans-Serif;
font-weight: normal;
padding: 20px 0px 5px 0px;
margin: 0px;
border-bottom: 1px solid #C0C0C0;
}#content h3 {
color: #000000;
font-size: 22px;
font-family: Century Gothic, Verdana, Arial, Sans-Serif;
font-weight: normal;
margin: 15px 0px 0px 0px;
padding: 20px 0px 10px 0px;
}#content img.wp-smiley {
float: none;
border: none;
padding: 0px;
margin: 0px;
}#content img.wp-wink {
float: none;
border: none;
padding: 0px;
margin: 0px;
}#contentleft {
float: left;
width: 54%;
margin: 0px 0px 0px 0px;
padding: 0px 0px 20px 0px;
}#contentleft ol{
margin: 0px 0px 0px 20px;
padding: 0px 0px 10px 0px;
}#contentleft ol li{
margin: 0px 0px 0px 20px;
padding: 0px 0px 0px 0px;
}#contentleft ul{
list-style-type: square;
margin: 0px 0px 0px 20px;
padding: 0px 0px 10px 0px;
}#contentleft ul li{
list-style-type: square;
margin: 0px 0px 0px 20px;
padding: 0px 0px 0px 0px;
}blockquote{
margin: 0px 25px 10px 25px;
padding: 0px 25px 0px 10px;
background: #E8E8E8;
border-top: 2px solid #000000;
border-bottom: 1px solid #000000;
}#content blockquote p{
margin: 0px 0px 10px 0px;
padding: 10px 0px 0px 0px;
}/************************************************
* Left Sidebar *
************************************************/#l_sidebar {
float: left;
width: 21%;
margin: 15px 0px 0px 20px;
padding: 0px 0px 20px 0px;
border-top: 2px solid #000000;
}#l_sidebar ul {
list-style: none;
margin: 0px;
padding: 0px;
}#l_sidebar ul li {
display: inline;
padding: 0px;
margin: 0px;
}#l_sidebar ul li a {
display: block;
color: #000000;
text-decoration: none;
margin: 0px;
padding: 5px 0px 5px 0px;
border-bottom: 1px solid #C0C0C0;
}#l_sidebar ul li a:hover {
background: #EFEFEF;
color: #910156;
}#l_sidebar p{
padding: 3px 0px 0px 0px;
margin: 0px;
line-height: 20px;
}/************************************************
* Right Sidebar *
************************************************/#r_sidebar {
float: right;
width: 21%;
margin: 15px 0px 0px 20px;
padding: 0px 0px 20px 0px;
border-top: 2px solid #000000;
}#r_sidebar ul {
list-style: none;
margin: 0px;
padding: 0px;
}#r_sidebar ul li {
display: inline;
padding: 0px;
margin: 0px;
}#r_sidebar ul li a {
display: block;
color: #000000;
text-decoration: none;
margin: 0px;
padding: 5px 0px 5px 0px;
border-bottom: 1px solid #C0C0C0;
}#r_sidebar ul li a:hover {
background: #EFEFEF;
color: #910156;
}#r_sidebar p{
padding: 3px 0px 0px 0px;
margin: 0px;
line-height: 20px;
}
- The topic ‘Sidebar problem’ is closed to new replies.