On Wed, Dec 22, 2010 at 5:36 PM, Michael Beaudoin <mich...@ba- doyn.com> 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


Message: 15
Date: Thu, 23 Dec 2010 10:40:58 -0500
From: Tom Livingston <[email protected]>
To: Michael Beaudoin <[email protected]>
Cc: [email protected]
Subject: Re: [css-d] can a div be a link?
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Or why not set an <a> to display block and have the logo be the bg of
that <a> instead of the div?


Wouldn't that mess up the nav in the div then?

Michael
______________________________________________________________________
css-discuss [[email protected]]
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/

Reply via email to