Theme Problems
Permalink
Hello,
I just installed a new theme intohttp://ultimatetshirtprinting.com/utp...
When i first went to view it it read great besides that it didn't know show my background images. Now when i go it won't even load my page? Please help.
Thanks!
I just installed a new theme intohttp://ultimatetshirtprinting.com/utp...
When i first went to view it it read great besides that it didn't know show my background images. Now when i go it won't even load my page? Please help.
Thanks!
Is your site down? I pinged your domain and it timed out...maybe contact your web host?
You were right it was that.
Can anyone tell me how to make CSS images work for themes?
Thanks!
Sent from my iPhone
Can anyone tell me how to make CSS images work for themes?
Thanks!
Sent from my iPhone
You can show images with css this way:
(We assume your image is in "myurl.com/packages/my_theme/images/example.jpg" and your css file is in "myurl.com/packages/my_theme/style.css")
Relative urls
Absolute urls
Note: to show an image that is one dir up you just put one "../" at the beginning of the path like this "../images/example.jpg". I know this is very basic, but some people don't know it, we should respect them too.
(We assume your image is in "myurl.com/packages/my_theme/images/example.jpg" and your css file is in "myurl.com/packages/my_theme/style.css")
Relative urls
#my_div { background: url("images/example.jpg") no-repeat top left; width: 200px; /*you can set the width of your image here*/ height: 200px; /*you can set the height of your image here*/ /*but remember your widht and height should usually match your original image's width and height*/ }
Absolute urls
#my_div { background: url("http://myurl.com/packages/my_theme/images/example.jpg") no-repeat top left; width: 200px; height: 200px; }
Note: to show an image that is one dir up you just put one "../" at the beginning of the path like this "../images/example.jpg". I know this is very basic, but some people don't know it, we should respect them too.