Solution:
You can’t only use css to link to other page, you need javascript. For example the class name isĀ linkPage
:
document.getElementsByClassName('linkPage')[0].onclick = function(){
location.href= 'some url...'
}
<div class="linkPage">linkPage</div>