I'm trying to get an <a href >
link fill the vertical height on a div that is set up in table-cell display.
The height might vary so setting padding is not an option (this might be my fall-back but will restrict the final solution).
I want it to do the equivalent of height:100%
but that does not work as can be seen in this example:
http://jsfiddle.net/VmcXh/1/
The result I want is for the link to fill the 'cell', both so that the background color can change as a visual cue and so the user can click anywhere in the space.
In the example I have used background-color
to show the links, in the real site this is an image.
Is this possible?
Update:
It seems the answer is No, at least not reliably across browsers. I've accepted the closest answer to this which also contains a link to an SO question that describes the relevant ambiguity in the spec.