You are here: Re: Link tags within a container « HTML « IT news, forums, messages
Re: Link tags within a container

Posted by Rob Stampfli on 10/11/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация