Support » Themes and Templates » Help with background image in css

  • Hello! I am having trouble with the directory of my background image and my style.css file. I’m using the starkers theme.

    Here is my css code

    body {
    	background-color: #4297bb;
    	background-image: url ('img/background.png');
    	margin: 0px auto;
    	}

    and here is style.css location

    -wp-content
    -themes
    -Muvinestark
    -style.css

    here is the image location

    -wp-content
    -themes
    -Muvinestark
    -img
    -background.png

    Any help would be great. I’ve been working on this for a while and I’m just a bit frustrated. Thanks

Viewing 1 replies (of 1 total)
  • I’ve checked starkers theme, it uses @import in style.css to include other css files that are in directory “css”. If you have added your entry to one of those files, correct url of your image would be ../img/background.png

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