Forum Moderators: not2easy

Message Too Old, No Replies

set an entire div a link

         

humpingdan

11:48 am on Jan 5, 2004 (gmt 0)

10+ Year Member



i have this layout

<div id ="head">
<div id ="logo bar"> (company logo - set as background)
</div>
</div>
<div id ="Content">
blahhhhhhhhh
</div>

the logo bar has the background set in the css but i want it to have a link set to it back to the homepage? how can i do this and it actually validate? how can i click the background image and it follow a link?

Is this possible?

Dan

Birdman

12:35 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



#logo_bar a{width: 100%; height: 100%; display: block;}

<div id="logo_bar"><a href="/"></a></div>

I believe that should do what you need.

TGecho

9:40 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



You probably don't even need the logobar div. Just apply the logobar id to the <a> and set it to display:block