tags:

views:

59

answers:

6
A: 

I don't know if this will solve your problem, but odd things can happen if you have a completely empty div. Try putting a single &nbsp; inside the <div> tag and see if that helps.

eykanal
still not working. I also tried onclick="javascript:location.href='location.html'"> . Also not working.
Jordan Pagaduan
A: 

Put the a href tag inside the div tag. That should fix it.

Ashmir
Still not working. Thank you for reply,
Jordan Pagaduan
A: 

Putting <div> inside <a> is invalid HTML (a is an inline element, div is a block-level element). Replace the div with a span which has display: block.

Probably not related, but the onclick handler should return false to not open the page in two windows simultaneously.

Tgr
+1  A: 

Add this to your stylesheet:

#content_sub_text a {
    position: relative;
    cursor: pointer;
}
Jasuten
Thank you. This works.! Thank you so much.
Jordan Pagaduan
+1  A: 

First of all an a is an inlne element. a div is a lock element. block level elements are not valid children of inline elements.

Lastly the div is completely unneeded. just do something like:

<style>
a.button, a.button:link, a.button:visited {display: block; width: 350px; height 100px;}
a.button:hover, a.button:active {
  border-bottom-width: 2px;
  border-bottom-style: dashed;
  border-bottom-color: #999999;
  padding-bottom: 5px;
}

a.web_westloh {
  background-image: url(images/web_westloh.png);
  background-repeat: no-repeat;
}

a.web_money {
  background-image: url(images/web_money.png);
  background-repeat: no-repeat;
}

</style>

<a class="button westloh" href="http://www.domain.com" title="link title"></a>
<a class="button web_money" href="http://www.domain.com" title="link title"></a>
prodigitalson
Thank you. it also works!
Jordan Pagaduan
A: 

Give display:block; to the a link property..

Hope this helps
Avinash

Avinash