I am trying to make a div a link, and this works, not sure if i have done it correctly. But i also want the type in the div to change color. Could anyone help me and if you explain a bit i will be greatfull :D Trying to learn :)
Here is the html
<div class="song_feature">
<a href="#"></a>
<div class="song_feature_content">
<div class="break32"></div>
<h1>1</h1>
<div class="break10"></div>
<div class="break45"></div>
<h2>Lorem ipsum title</h2>
<div class="break10"></div>
<p>lorem ipsum</p>
</div>
</div>
And the css
.song_feature:hover {
background-color: #B5B5B5;
cursor: pointer;
}
This is easier to do if you use jQuery.
HTML:
JS:
run: http://jsfiddle.net/cS6h8/