Jump to content

background image


Ruth

Recommended Posts

Ok guys this is going to be a stupid question but I forgot how to move through directories. I have a folder WWW for my html files and a folder for images. I'm trying to get my background image displayed through my css but I'm forgetting something. Here is what I have

 

background-image: url(.../images/background.jpg);

 

of course my background image is not showing up. what am I forgetting?

Link to comment
https://forums.phpfreaks.com/topic/177714-background-image/
Share on other sites

hello,

 

can you please put the full path for an image and try it ?.

for example (background-image: url(www/.../images/background.jpg);)

 

Thanks & Regards

http://www.joomla-web-designer.com

Joomla Custom Template Design, Hire PHP & MySql Programmer, Hire LAMP Programmer

 

http://www.joomla-web-developer.com

Joomla Web Redesign Services, Joomla CMS Development, Joomla Ecommerce Web Maintenance Solution

 

Link to comment
https://forums.phpfreaks.com/topic/177714-background-image/#findComment-937255
Share on other sites

I believe the path needs to be relative to the css. So if you have a structure along the lines of...

 

root

-css

--styles.css

-images

--background.jpg

 

Then the relative path would be ../images/background.jpg. Or in plain English terms, up one directory the into images, background.jpg.

Link to comment
https://forums.phpfreaks.com/topic/177714-background-image/#findComment-937263
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.