• I can’t seem to add a background color to my top commenter widget. It’s the one in the sidebar. The background seems to be transparent, and I’d like it to match the tabbed widget I have above it. I added this following code, but it looks like I’m missing something. Anyone have any ideas? Thanks!

    #topcomm-widget-4 {
    	background: #fff;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

    Thread Starter rick4him

    (@rick4him)

    Thanks, but I can inspect the CSS using Chrome. I’m trying to figure out if anyone knows what’s wrong with my CSS.

    Try using “background-color”

    Where are you putting that code? Currently, it’s being set by this:

    #topcomm-widget-4 {
        background: none repeat scroll 0 0 #FFFFFF;
    }

    in this file, line 19:
    http://noahsdad.com/wp-content/themes/eightbit-standard-child-theme-kit-23729a7/style.css?ver=3.3.2′

    Thread Starter rick4him

    (@rick4him)

    I’m putting into my child theme css. That link you set up is actually correct. But it’s different than the code you entered. This is what I see:

    #topcomm-widget-4 {
    	background: #fff;
    }

    Is that incorrect?

    I’m also trying to change the line height of that list (I want to add some space in between each of the items)

    Thanks for your help by the way.

    Yeah, that is very odd — Firebug shows the code I copied above, but when I look at the stylesheet — it’s what you show. Weird. But maybe Firebug is “combining” styles from inherited CSS or from the imported styles? Dunno. Never seen it do that before. At any rate, see if changing to background-color works. If not try using this as the selector

    #sidebar #topcomm-widget-4

    Also, I read the intro to your site — OMG, what a gripping, touching story, and so lovely what you and your family are and have done with an incredibly hard situation.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Need some help with CSS (adding a background color)’ is closed to new replies.