WordPress.org

Ready to get started?Download WordPress

Forums

How would one add a second background to a theme using css (2 posts)

  1. Sirsyco
    Member
    Posted 4 years ago #

    http://www.ericdsawyer.com/ronniespizza/

    I would like to add an additional bg to the current theme. I'm using the clear theme, and have already replaced the main images with transparent .png's. The only issue is that I'm not a web guy.... more of a graphics guy. I'd like to figure out how to ad a background behind the background of the current center column. I tried copying and pasting the original backgrounds css code and altered it to this:

    #main {
    width: 271px;
    background:url(img/wood-mahogany-seamless-background-fill.jpg) repeat;

    }

    The problem I think I am having is that I don't know how to direct it behind the layers that are already there..... well actually I can't get it to show up at all. Unless I replace the original's target from (img/bg.png) to the one listed above. Maybe there is something to do with hooks? I'm not quite sure what the # does, or how I can add a repeating bg image to the entire background. I tried to get it to work with the graphics, but there was an issue with the seamlesness of the image.

    Any help would be greatly appreciated. Thanks in advance!!! Hell, maybe this is just not possible, IDK.

  2. Jopperdepopper
    Member
    Posted 4 years ago #

    Have you tried to attach your background image to the body-tag?

    body {
    background:url(img/wood-mahogany-seamless-background-fill.jpg) repeat;
    }

    Of course you add the background to the already existing styles on the body-tag.

Topic Closed

This topic has been closed to new replies.

About this Topic