Posted by sp09 on March 10, 2010 at 7:25am
My theme's background color is making it difficult to read and see forum post due to the color fonts. I need to change the forum post background color. How should I go about doing this?
My theme's background color is making it difficult to read and see forum post due to the color fonts. I need to change the forum post background color. How should I go about doing this?
Comments
CSS? use firebug to identify
CSS? use firebug to identify the element and its class or id and see what happens if you change the background of that.
Forum by default using your
Forum by default using your theme's background when forum topics are posted like now. You do understand what I am saying right?
I'm still right and you
I'm still right and you probably don't understand what I'm saying. Anyway, first you said you wanted to have your forum post background colour changed, not the entire forum page background colour. two different things, for your information the post is what is enclosed by a rounded border here on drupal.org
in any way, you should still be looking at the forum page html structure like I originally suggested, you might still see that the body of any forum page has a particular class or id that is very specific to all forum pages (if not you've removed this from your garland variation), for reference here on drupal.org that is .node-type-forum - using this and you can apply and overwrite the background.
Sounds to me like you've got to learn a lot more about CSS, so you should head over to htmldog or w3schools
lol, yeah I think your right
lol, yeah I think your right c2uk. I do know CSS I didn't just start making websites. But anyway, so your telling me in order to change the forum post background I have to configure drupal's core node-type-forum? Or is it on a theme by theme basis?
...
that's not what I'm saying at all. you don't need to change anything if the theme is set up properly. you just need to add a CSS rule that overwrites the background on those pages. For this you need an understanding of CSS specificity (http://reference.sitepoint.com/css/specificity).
Lets have another look at the drupal.org forum, its html source to be precise:
<body class="not-front logged-in page-node node-type-forum one-sidebar sidebar-right">and the particular white background with the shade on the left is actually set for this div:
<div id="contentwrapper">#contentwrapper {background:#FFFFFF url(/sites/all/themes/bluebeach/shade.png) repeat-y 0 0;
}
(all identified using Firebug)
so, in order to change the background for the forum pages, you'd have to add this css rule:
.node-type-forum #contentwrapper {background:#000000;
}
What file do I put the code
What file do I put the code in?
how about styles.css in your
how about styles.css in your theme? again Firebug could tell you that as well, but I'd thought someone with some experience in web design/development knows that.