Use display: block; on link, and set dimensions to fill div.
On 12/22/2010 5:36 PM, Michael Beaudoin wrote:
Is it possible for a div to be a link?
I'm trying to make a logo, which is a background in a masthead, as a
link. The masthead div also contains the horizontal nav.
I was thinking of making another div, float it left and use a negative
margin (or a positioning attribute) to position the box over the logo
and have the link over the logo.
I'm sure this is a super hack and there is a better way, if anyone
cares to enlighten me.
Thanks,
Michael
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/