Hi there,
Dose anyone know how I could turn the following in to a single clickable block link, so when a user rolls over anywhere in the block it changes colour and becomes a link.
<div class="one_third">
<h2><a href="#">News Letters Suday test post</a></h2>
<small>May 15th, 2011</small>
<div class="thumbnail"><a href="#" title="News Letters Suday test post"><img width="190" height="140" src="image_link.jpg" class="medium-thumbnail" alt="front-news" title="front-page3" /></a></div>
<div class="entry">
<p><a rel="bookmark" href="http://localhost:8888/edinburghshiatsuclinic/news-offers/news-letters-suday-test-post/.">Suspendisse tempus semper dignissim. Pellentesque ac tempus ligula. Aenean eu nisi eu mi consequat vehicula venenatis et leo. Praesent ornare aliquam ultricies. Nunc justo tellus, varius quis viverra a, scelerisque non justo. Suspendisse leo turpis, elementum in dignissim sed, facilisis</a></p>
</div>
</div>
I have done some css and I’ve got close to what I’m after but not quite there, the link elements work and block fades but is not active? (sorry for length of code)
.one_third small, .one_third_last small {
font-size: 11px;
margin-left: 20px;
}
.one_third, .one_third_last {
float: left;
width: 280px;
margin-left: 34px;
background-color: #eee;
padding-bottom: 230px;
}
.one_third a, .one_third_last a {
display: block;
}
.one_third h2, .one_third_last h2 {
font-size: 16px;
padding-left: 20px;
padding-top: 10px;
}
.one_third h2 a, .one_third_last h2 a {
color: #626262;
display: block;
}
.one_third h2 :hover, .one_third_last h2 :hover {
color: #a30ffc;
}
.one_third, .one_third_last {
-webkit-transition: background-color 500ms ease-in; /* Saf3.2+, Chrome */
-moz-transition: background-color 500ms ease-in; /* FF3.7+ */
-o-transition: background-color 500ms ease-in; /* Opera 10.5+ */
transition: background-color 500ms ease-in; /* futureproofing */
background-color: #eff4ed;
height: 186px;
margin-top: -7px;
}
.one_third:hover, .one_third:focus {
background-color: #f9fdfd;
}
.one_third_last:hover, .one_third_last:focus {
background-color: #f9fdfd;
}
.entry {
clear: both;
}
.entry a {
margin: 0;
padding: 10px 20px 0;
font-size: 13px;
line-height: 1.5em;
color: #626262;
display: block;
}
Thanks for your help, also the site is not online yet or I’d post a link to it.