PDA

View Full Version : Empty Anchor with Style



Lukus
May 16th, 2007, 02:37 AM
Hey guys

This may be really simple, but I'm stumped at the moment :/

Here's a simplified version of what I'm trying to do:

<a style="display:block; height:400px; width:400px" href="#"></a>I just want an empty area which acts as a link, but with the style embedded into the anchor tag. It works perfectly in FF but in IE, the 'box' is displayed but it's not an actual working link.

Any ideas?
Cheers

simplistik
May 16th, 2007, 08:38 AM
yea unfortunately you have to give it a background property. fill it with something like a color or a transparent gif. I was pretty pieved when that happened to me as well.

SlowRoasted
May 16th, 2007, 08:53 AM
This is good to know. I can see where I might waste a lot of time trying to figure it out:P

DDD
May 16th, 2007, 03:12 PM
lucas helping lukus

I need to eat lunch because I found that funny (blood sugar dangerously low) :sad:

Lukus
May 17th, 2007, 09:09 AM
Cheers guys :)