WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Using DIVs as links?, Guillermo, January 29, 2004
     Re:Using DIVs as links?, Kiwi, January 29, 2004
         Re:Using DIVs as links?, Guillermo, January 29, 2004
             Re:Using DIVs as links?, Kiwi, January 30, 2004
                 Re:Using DIVs as links?, Guillermo, January 30, 2004

Subject: Re:Using DIVs as links? From: Kiwi Date: January 30, 2004

That code works for me like you want (IE6)

Ill take a guess and say that you class navBotonOff has set the position to absolute or relative.

The width therefore is only the width of the image and the anchour not the whole width of the page.

So the only clickable area is the hyperlink and image.

Example with mouseovers

Code:

<div style="position:relative;background-color:#C0C0C0;border:inset 2px;height:60px;">
<div class="navBotonOff" style="width:100%;position:absolute;" onmouseover="this.style.backgroundColor = 'red'" onmouseout="this.style.backgroundColor = 'transparent'">Width Set</div>

<div class="navBotonOff" style="position:absolute;top:20" onmouseover="this.style.backgroundColor = 'red'" onmouseout="this.style.backgroundColor = 'transparent'">No Width Set</div>




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX