View Full Version : changing sidebar background color
tomsepe
March 30th, 2006, 11:50
I've looked at every color setting in the stylesheet and in the sidebar.php, page.php, and index.php and I can't find a way to change the background color of the sidebar!
Please help!
Thomas
QuietCitizen
March 31st, 2006, 12:10
It's an image. Edit the image, or remove it in the css.
tomsepe
March 31st, 2006, 02:00
I found the kubrickbgcolor.jpg file but it is for the page background.
none of the images in the kubrick theme images folder seem to correspond to the sidebar background!
wtf?
Resiny
March 31st, 2006, 02:17
it isn't a background image. A little ways down in the style sheet you will see:
.secondary {
font: 1em/1.5em 'Lucida Grande', Verdana, Arial, Sans-Serif;
padding: 10px 0;
margin: 0 0 20px 71%;
width: 26%;
color: #666;
position: relative;
/* The following are IE Fixes */
_padding: 30px 0 10px;
_margin-left: 0%;
_margin-right: -4%;
_width: 26.5%;
}
add:
background: #hexcode;
and that's it.
If you want to make the sidebar stretch all the way down the page, then you have to use a repeating png image. If you need help, just PM me and I can give you a hand :)
tomsepe
March 31st, 2006, 06:44
I couldn't find the .secondary in the css.
I'm using 2.0 if that makes a difference.
But I tried adding
#sidebar {
background-color: #000000;
}
to the css and that did the trick!
man I tweaked everything trying to find this solution (a good way to learn!)
but now my page doesn't look right in firefox:
http://sepeblog.com
hmm what did I do?
tomsepe
March 31st, 2006, 06:47
no that is a total kludge... didn't really solve the problem there is stil a column of the old color showing through
darn
lisa
March 31st, 2006, 07:08
For kubric, the sidebar background is included in the overall background. The only way to change it, is to edit the file.
Look at this post: http://getk2.com/forum/showpost.php?p=1133&postcount=6, an the image you see is of my background for my site at http://www.dariaunplugged.com
As you can see, the sidebar background is a part of the image.
tomsepe
March 31st, 2006, 07:09
ok
finally found it --- trail and error
its in the header.php
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
controls the background of the sidebar.
phew!
Resiny
March 31st, 2006, 07:07
ah. I asumed you were using k2. yes, what I wrote was incorrect
lynu
June 22nd, 2007, 03:11
Hey im using K2 template and i'm interested in changin sidebar color!!
I did this and had no effect.
.secondary {
font: 1em/1.5em ‘Trebuchet MS’, Verdana, Arial, Sans-Serif;
padding: 35px 30px 10px;
margin: 0;
background: #666
color: #666;
float:left;
_margin-left: 0%;
_margin-right: -50%;
width: 250px;
}
Help!?
vBulletin v3.6.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.