PDA

View Full Version : Image link doesn't work in IE


mat01
05-19-2006, 08:25 PM
Hello.

I'm having a little problem with an image link on my CSS site - only in IE (as usual).

Basically it's a banner ad. The banner itself displays fine, but when I move my pointer over it, it doesn't behave as if a link is available.

If I move the ad around the page, outside various div brackets etc, it does work. Curiously in some places just part of the banner is an active link, the rest behaving like an image.

I'm a little new to CSS - I guess that's what's causing this.

Can anyone help please?

www.james pee cook.com

erisco
05-19-2006, 09:38 PM
Your script needs to go at the top of your page, and your images are formatted wrong.
<img></img>
Is not correct. Image tags are self closing, and also need the alt attribute.
<img alt="something" .... />
See if that does anything.

mat01
05-20-2006, 05:39 AM
Hi eric..

That doesn't seem to make any difference. What do you mean by that the script should go at the top of the page...why?

Cheers

mat01
05-20-2006, 06:03 AM
I've found a solution : turn on absolute positioning.

Now the link works....

How rubbish is IE!!!

erisco
05-20-2006, 09:48 AM
Your page has some poor coding in it, but it seems you have found a solution.

mat01
05-20-2006, 11:22 AM
I'm here to learn! Please tell me what the poor coding is.

Kravvitz
05-20-2006, 06:00 PM
For starters...

You're not using a valid doctype. Use an HTML 4.01 or XHTML 1.0 one from this list. (http://www.w3.org/QA/2002/04/valid-dtd-list.html)

In your CSS change all instance of "*html" to "* html". (Note the space.)

Please fix your other X/HTML (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.jamespcook.com%2F) and CSS (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=0&uri=http%3A%2F%2Fwww.jamespcook.com%2F) errors.

Use a list (<ul>) instead of a <table> for your navbar.

These three articles explain how to style lists.
http://www.alistapart.com/articles/taminglists/
http://css.maxdesign.com.au/listutorial/
http://www.webreference.com/programming/css_lists/