WordPress.org

Ready to get started?Download WordPress

Forums

CSS Image links (3 posts)

  1. garyb10
    Member
    Posted 4 years ago #

    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

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    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 ..

  3. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    { 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)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags