hello, i have several html pages and one external css plus javascript for menu i am adding background img in external css but is not showing it on the website can someone figure out the issue and let me know,
[CODE DELETED - please only post code specific to your problem]
background-image:url(labandastgah/red.png); labandastgah being a folder in a directory which contains the image red.png can you be more specific thanks.
Those are all targeting different folders on the same server, so it's important to know how they work.
/images - targets a folder of 'images' in the root images - targets a folder of 'images' in the same location as the CSS file ../images - targets a folder of 'images' one level up ../../images - targets a folder of 'images' two levels up
i have several html pages and one external css plus javascript for menu i am adding background img in external css but is not showing it on the website can someone figure out the issue and let me know,
[CODE DELETED - please only post code specific to your problem]
2) Without a link to the live site, it'll be hard to discern
3) I can nearly 99% guarantee that it has something to do with the path to the image that you've entered.
thanks, what about
background-image:url(labandastgah/red.png); labandastgah being a folder in a directory which contains the image red.png
can you be more specific thanks.
Where is your CSS file located (what is the path) and where is your image located (what is the path)?
/images/red.png
images/red.png
../images/red.png
../../images/red.png
Those are all targeting different folders on the same server, so it's important to know how they work.
/images - targets a folder of 'images' in the root
images - targets a folder of 'images' in the same location as the CSS file
../images - targets a folder of 'images' one level up
../../images - targets a folder of 'images' two levels up