941,497 Members | Top Members by Rank

Ad:
Jul 22nd, 2010
0

href for a css syled image

Expand Post »
I have a master page that is referenceing a css style sheet that places an image that I want to link to. countdown block is the image style:

<div id="countdown_block">
<div id="countdown">Days left in <strong>FY</strong>
<script type="text/javascript">document.write(y);</script>
</strong></div>
<div id="daysLeft">
<script type="text/javascript">document.write(calculatediff);</script>
</div>
</div>

Where do I put the href?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cdano is offline Offline
1 posts
since Jul 2010
Jul 22nd, 2010
0
Re: href for a css syled image
You cannot put an "href" on a div. Put the anchor around the div like so:

HTML and CSS Syntax (Toggle Plain Text)
  1. <a href="http://google.com">
  2. <div></div>
  3. </a>
Reputation Points: 15
Solved Threads: 6
Newbie Poster
pwinfrey is offline Offline
18 posts
since Jul 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Button positioning in HTML form
Next Thread in HTML and CSS Forum Timeline: Table Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC