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
inside the <div>
tag and see if that helps.
A:
eykanal
2010-05-14 04:19:45
still not working. I also tried onclick="javascript:location.href='location.html'"> . Also not working.
Jordan Pagaduan
2010-05-14 04:27:31
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
2010-05-14 04:39:06
+1
A:
Add this to your stylesheet:
#content_sub_text a {
position: relative;
cursor: pointer;
}
Jasuten
2010-05-14 04:39:33
+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
2010-05-14 04:45:44