strange effect with images?

J

John Salerno

The problems keep coming! Ok, this used to work, and now suddenly it
doesn't. The images I'm using for this menu should have small squares to
the left of the text, but when I use them they don't. Why do they disappear?

Here are the images:
http://www.johnjsal.com/images/l1_down.jpg
http://www.johnjsal.com/images/l1_over.jpg

And here are pages that use them in a menu:
http://www.johnjsal.com/columns.html (uses other styles too)
http://www.johnjsal.com/menu-test.html (just uses the menu stuff, so it
should work)
 
J

Jonathan N. Little

John said:
The problems keep coming! Ok, this used to work, and now suddenly it
doesn't. The images I'm using for this menu should have small squares to
the left of the text, but when I use them they don't. Why do they
disappear?

Here are the images:
http://www.johnjsal.com/images/l1_down.jpg
http://www.johnjsal.com/images/l1_over.jpg

And here are pages that use them in a menu:
http://www.johnjsal.com/columns.html (uses other styles too)
http://www.johnjsal.com/menu-test.html (just uses the menu stuff, so it
should work)

Colors and backgrounds
http://www.w3.org/TR/CSS21/colors.html#propdef-background-position

Why don't you save yourself some grief and confusion and peruse the CSS
properties and familiarize yourself first...
 
J

John Salerno

John said:
I thought I had, and this had worked one time before. Now that I read
your link, I remember I had to change some position properties to get it
in the right spot, so that must have messed me all up.

Thanks.

Nope, even putting that stuff back in didn't fix the problem. :(
 
J

John Salerno

John said:
The problems keep coming! Ok, this used to work, and now suddenly it
doesn't. The images I'm using for this menu should have small squares to
the left of the text, but when I use them they don't. Why do they disappear?

Here are the images:
http://www.johnjsal.com/images/l1_down.jpg
http://www.johnjsal.com/images/l1_over.jpg

And here are pages that use them in a menu:
http://www.johnjsal.com/columns.html (uses other styles too)
http://www.johnjsal.com/menu-test.html (just uses the menu stuff, so it
should work)

Ok, I'm very confused. On a whim (and out of desperation), I copied the
CSS from the external file and pasted it as an internal style sheet in
my html file, and now the images work! Why would this solve the problem
when nothing else changed?
 
J

John Salerno

Jonathan said:
try:

url(../images/l1_down.jpg);
url(../images/l1_over.jpg);

oh my god, i'm so dense! i was thinking of the html file's path to the
iamge, and not the css file! thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top