how to create a css class that makes an element link to another page

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>