Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Problem changing my image references for WordPress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39268
    calday100
    Member

    Hi, another novice question :)

    I’ve started to change the reference’s to images in my web template in order to make it WordPress compatible.

    Here’s what I’m doing now

    /assets/ *Assets is my image folder which used to be called images

    I have found some with dots before the file. The query I have is what to do with the ‘…’ before the ‘/’ Could somebody show me what they would change the example below to please.

    background:url(../images/button-h.png) left top no-repeat;

    Thanks again

    #107541
    TheDoc
    Member
    /images/button-h.png

    That means “Theme Folder > Images Folder > button-h.png”. So you would use that if you were working on a template like ‘page.php’ and you needed to insert an image like this:

    If you want to go from your style.css file, you’ll need to do this:

    background:url(images/button-h.png) left top no-repeat;

    It’s relative to where your style.css file is, in this case it’s in the root of your theme’s folder.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.