Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

only part of a href link is active

Tags:

html

css

href

I'm building an HTML, CSS thumbnail grid, with rotating thumbs, on the back of the thumbs is a href link. For some reason only part of the link is clickable.

<div class="flip-container" ontouchstart="this.classList.toggle('hover');">
<div class="flipper">
    <div class="front">
        front
    </div>
    <div class="back">
        back
         <p><a href="index.html">Find out more</a></p>
    </div>
</div>

Please see my jsfiddle http://jsfiddle.net/brm3z2dk/3/

like image 502
JakeKempo Avatar asked Oct 20 '25 14:10

JakeKempo


1 Answers

Add this to your css file OR Append .back

.back {
 transform: rotateY(180deg) translateZ(1px);
 width: 200px;
 height: 150px;
 padding: 10px;
 background-color: rgb(29, 140, 194);
 font-size: 22px;
 color: rgb(255, 255, 255);
 font-weight: 300;
 line-height: 1.1;
 }

I added just translateZ(1px) to transform.

Working JS fiddle

http://jsfiddle.net/2a8y5x3t/

I hope this helps :)

like image 153
YOU Avatar answered Oct 23 '25 06:10

YOU



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!