I've a problem. I've one HTML file from where I have linked the css which is residing in the css folder. In the css for a div I've a class where I'm trying to load the backgroud image using BACKGROUND: url('../images/bg.gif'). But for some strange reason the image is not getting loaded. My folder structure is-
the ../ syntax means that the image is located one folder above the document which it actually isn't
use root relative addressing url(/images/bg.gif)
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
No quotes should be needed around the path and image name UNLESS there is a space in the string. The path defined there would be document relative.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
I could not recommend this more highly referencing any and all src's! Makes life SO much easier.
__________________ Web Merchant Services Please login or register to view this content. Registration is FREE , Please login or register to view this content. Registration is FREE