|
Posted by Rob Stampfli on 12/23/77 11:46
In article <44559756$1@quokka.wn.com.au>,
ironcorona <iron.corona@gmail.com> wrote:
>Rob Stampfli wrote:
>> Suppose you have a container of unknown or variable size.
>> How would you specify a link tag inside it such that it
>> takes up the entire container
>
>in the css:
>
>a {display:block; width:100%; height:100%;}
>
>I only discovered the fun things you can do with the anchor tag, if you
>set it to display as a block, a few weeks ago.
This doesn't seem to work for me. Take a look at:
<http://cboh.org/spantest.html>
What I'm looking for is a way to make the <a> object span
the entire center block (horizontally and vertically),
instead of just the center slice of the center block --
a way to make the entire center block pink, if you will,
and such that clicking anywhere in the block should take
you to embedded href.
Note that the width parameter seems superfluous in practice,
although I would think it should still be necessary. The
"display:block" appears to make the <a> object 100% wide,
but I can't figure out how to do the equivalent with its
height. (Sure, I could code "200px" as the height, but
that would not work if the exterior container changed size.)
Rob
Navigation:
[Reply to this message]
|