I have a div
with some text in it and a link around it.
<a href="mypage.html">
<div>
Text goes here ...
</div>
</a>
However, I only want the link to work at a certain page width, namely less than or equal to 625px. Something like this:
a {
link-works: no;
}
@media (max-width: 625px){
a {
link-works: yes;
}
}
The code above is obviously just an illustration – but can this be done with CSS? Or will I need a javascript solution?