Search code examples
csshtmlhref

CSS - <a href> not clickable


http://prntscr.com/19fg8x

So I have two divs, one has:

.holder { display: table; 
position: fixed;
z-index: 1000;
height: 100%; 
width: 100%; 
text-align: center;
}

And other behind that I have

<div>
    <a href="hello.php">Hello hum</a>
</div>

But isn't clickable, I can only click it on IE. Well If I remove the height: 100%, it would became clickable, but I need it height 100%..

Any solution?


Solution

  • You have not set your .holder class to your div.

    Change your markup to:

     <div class="holder">
      <a href="hello.php">Hello hum</a>
     </div>
    

    FIDDLE