While for a couple of reasons you might have not understood the question from the title let me try to explain what exactly do I have in mind.
Is there any "correct" way of making an entire div a clickable box that would retain it's on-hover CSS properties and would redirect to http://example.com?
I've got a div as simple as this one:
<div class="name">
What should I be typing here?
</div>
Now the div class is as follows:
.name {
float: right;
width: 100%;
border-top: 1px solid #EEE;
background: transparent;
position: relative;
}
And the behavior on hover is:
.name:hover {
background: #f5f5f5;
transition-duration: 0.1s;
transition-property: background;
}
If there is anything missing/wrong with my question, just tell me and I will do my best to correct it/provide more information.
Thanks for the help.