I have a div that I am trying to make (entirely) clickable
The div has a class= comp_prod_stu_del
<div id="compare">
<h1>Compare Our Racks
</h1>
<div class="comp_prod_stu_del">
<h3>The Studio Deluxe™ Guitar Case Racks </h3>
<ul>
<li>Designed for storing 7 – 9 guitar cases*</li>
<li>Decorated with beautiful imported herringbone inlay edging</li>
<li>Utilzes a hardwood 4-rail system</li>
<li> Features hardwood-veneered sides </li>
<li>Available in Red Oak or Walnut</li>
</ul>
</div> </div>
I do not want to use JS. I have tried inserting an anchor inside the div (not wrapping the div) and setting the display on that anchor to “block” and setting the size to equal the size of the div, however when I do that, the other contents of the div get pushed out. I’m missing something in how I get around this unless there’s another method. Thanks
Here is what I have now for the css without any links inserted:
however when I do that, the other contents of the div get pushed out. I’m missing something in how I get around this unless there’s another method.
Hi,
Yes there is another way to do it. You can use an absolute positioned anchor so it is removed from the flow. That way it does not push other elements and it can cover the entire area.
seems to work fine so far. Not sure if this will work in IE6. I used the background I already had in the div.
<div class="comp_prod_stu_del">
<h3>The Studio Deluxe™ Guitar Case Racks </h3>
<ul>
<li>Designed for storing 7 – 9 guitar cases*</li>
<li>Decorated with beautiful imported herringbone inlay edging</li>
<li>Utilzes a hardwood 4-rail system</li>
<li> Features hardwood-veneered sides </li>
<li>Available in Red Oak or Walnut</li>
</ul>
<a href="Store/buy_pages/session_del_red_oak.asp"></a>
</div>
I didn’t see a “block” display in yours but I have it in mine. Do I need that still?