Closed (fixed)
Project:
Abarre
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Reporter:
Created:
18 Jun 2009 at 13:29 UTC
Updated:
6 Jul 2009 at 19:37 UTC
Jump to comment: Most recent
Hello,
I've installed this great theme and am having trouble figuring out how to get a background in the content or the rest of the page. The left sidebar has a great background image, and I wanted to do something similar on the rest of the page other than just the plain white background. I can't figure out where in the CSS file I should insert some code for the background... anyone help? Thanks!
Comments
Comment #1
Anonymous (not verified) commentedTo change the background of the page, you need to do 2 things :
- change the background image used for the sidebar (yes, it overlap on the page bg.)
- apply the new background to html like this :
html {background-color:#whatever;}
Makes sense ?
Comment #2
alextorpey commentedWhere does that html go though? That's where I'm confused... I'm not sure what part of the style.css to put it in.
Comment #3
Anonymous (not verified) commentedIt should go in your style.css
I would put it on line 101 :)
As a sidenote, if you changed some colors using the color module (in the theme settings), you will need to resubmit that page so the new css is included in the modifications.
Comment #4
alextorpey commentedIt isn't quite that simple it seems... which is why this is so confusing...
I have placed that code in all sorts of places, and each time it only covers a small part of the display area. Between body, content, column, sidebar, footer, header it doesn't cover all of the page and overlaps with the menu items. Is there a way to put a background color for the entire page? It doesn't seem like there is with this style. Thanks,
Comment #5
Anonymous (not verified) commentedCould you provide a screenshot please ?
You seam to have missed one of the instruction :
1 -> change the background image used for the sidebar (yes, it overlap on the page bg.)
Comment #6
alextorpey commentedI saw that instruction, I don't know what you mean at all though. Change it to what? I'm not looking to change the sidebar, just the rest of the page. I have tried inserting tables with bg image colors just to see what happens, and they are stripped of their background color, which means this issue has something to do with the theme itself... Is there some option somewhere that disables any other color from being displayed in the background? I've never had this problem with Drupal before, not really sure where to go from here....
Comment #7
alextorpey commentedAlso, I'd be happy to provide a screenshot.. but I'm not sure what for? For what the page looks like? For the code? Thanks for your help with this!
Comment #8
Anonymous (not verified) commentedOk, so let's try to explain this in a simple way.
You want to change the color of the content background, but not the sidebar.
BUT,
the sidebar is created using an image that repeats from the top to the bottom of the page, and is actually wider than the sidebar itself. The image is 630px wide, and the sidebar is around 300px wide. So the image is not only behind the sidebar, but also behind the content of the page.
If you want to change the color of the content background, you will need to change the general background color by adding the previous snippet in your css (where you put it doesn't really matter in this case...)
AND also edit the image used to create the sidebar background to match the color of the page.
And obviously, I don't need a screenshot of the code... why would you do that ? I thought that a screenshot of the page you were describing ("each time it only covers a small part of the display area...") would make it more obvious to me.
An I have no idea what you are trying to do with tables. Really, that's a total mystery to me.
Comment #9
alextorpey commentedYeah, that makes much more sense, thanks.
The table was just an example that for some reason putting in something as simple as a table with a color background just doesn't show up on the page at all as having that background, it just stays white, no matter what you do.
I'll try all that though.
Comment #10
Anonymous (not verified) commentedOk, cool,
keep me updated if you solve your problem.
Comment #11
Anonymous (not verified) commentedNo update - Closing