WordPress.org

Support

Support » How-To and Troubleshooting » CSS Image links

CSS Image links

  • I have some background images in my stylesheet. What path do you need to use to get the images? What I have is background:url(/images/paperbg.jpg); This is on my test server, so I can’t give url

Viewing 2 replies - 1 through 2 (of 2 total)
  • background: url(path/in/relation/to/this/stylesheet/file.gif)

    Use a path relative to where the stylesheet is .. no need for the preceding slash ..

    Michael

    @alchymyth

    Forum Moderator

    { background:url(images/paperbg.jpg); }
    normally no slash infront of images, assuming that the images folder is on the same level as the style sheet (like in wordpress themes)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS Image links’ is closed to new replies.
Skip to toolbar