开发者

How to make links behind a div with a superior z-index value clickable?

开发者 https://www.devze.com 2023-01-29 19:23 出处:网络
I have this design for an HTML book and i am trying to achieve a certain effect which fading the text when scrolling the page which i successfully done using a fixed div with a s开发者_JAVA百科uperior

I have this design for an HTML book and i am trying to achieve a certain effect which fading the text when scrolling the page which i successfully done using a fixed div with a s开发者_JAVA百科uperior z-index value and a PNG background image.

.book-bg {
background: url(../../img/book-frame-bg.png) no-repeat fixed center top;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 100;}

But now all my links which covered by the ".book-bg" div aren't clickable, how can i solve this?

Sample page here: http://mmahgoub.com/thebook/chapter-01.html

Thanks


In Firefox, Opera and Chrome/Safari you could use pointer-events: none in your CSS rule. If you need IE compatibility as well then try Forwarding Mouse Events Through Layers.


your links will need a higher z-index, for this they will need to be positioned, relative, floated or fixed.

0

精彩评论

暂无评论...
验证码 换一张
取 消