Support » Themes and Templates » background-image in css

  • I am trying to add a background-image in css

    #footer {
        background-image: url("images/footer.png");
        background-repeat: repeat;
        clear: both;
        width: 100%;
    }

    The footer image is not showing up. How do we specify background images in css? I’m very new to making templates for WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • #footer {
        background: url('images/footer.png');
        background-repeat: repeat;
        clear: both;
        width: 100%;
    }
    Michael

    (@alchymyth)

    Forum Moderator

    without seeing the problem live in your site, theres is not much anybody can help you with.

    you style looks correct, however, is there an element with the css id #footer in your site, and is the footer.png image located in the images folder of your theme?

    also, did you clear the browser cache – by pressing ‘CTRL F5’ ?

    link to your site?

    http://www.w3schools.com/css/css_background.asp

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘background-image in css’ is closed to new replies.