Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list-style-image

Status
Not open for further replies.

tek2long

Technical User
Mar 12, 2003
2
US
I understand that this feature is not available in NN. My question is this: My image is two levels down from the root folder: media/images and my html page is two levels down products/preconfig my css is in the root folder and here is the link I used:
list-style-image: url("../../media/images");

Is the image used relative to the page it displays on or to the css?

Thanks for any help you can give me.
 
Always relative to the calling page. And, even if I'm totally wrong, there are only two possibilities and they can be quickly checked! Of course, if your CSS file is in the same directory as your HTML file, then the path is identical and therefore you have no problem at all.

There should be no a priori reason why Netscape shouldn't see your paths. If you're having trouble getting Netscape to see your paths, check your capitalization and path delimiters. But, there might be something I don't know...

Cheers,
[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
It isn't viewing in IE. here is the format:
products / media and css on the root
preconfig / images are both one level down
my.html / imageused.gif are two levels down

link used:
ul
{
list-style-image: url("../../media/images/imageused.gif");
}

Is this correct?
 
You don't have an
Code:
index.html
in your root web directory? How peculiar!

Well, it's easy enough to test to see if your path is correct -- just start with a simple image call:
Code:
<img src=&quot;../../media/images/imageused.gif&quot;></img>
if that doesn't work, then your problem is the path or the capitalization.

The should work in every browser on Earth, even the new Jell-O® brand browser.

Cheers,
[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top