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;
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.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.