Jump to content
  • 0

z-index


cyklop77
 Share

Question

помогите пожалуйста решить проблему

на странице z-index блока

.header .nav_top_1 ul li a.punkt_1 больше чем z-index блока

.wrap .leaf_top_left . однако блок

.wrap .leaf_top_left всё таки перекрывает блок

.header .nav_top_1 ul li a.punkt_1 в частности и блок

.header .nav_top_1 в общем

в результате невозможно кликнуть по пункту меню. хотелось бы чтобы меню было кликабельно

Edited by cyklop77
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

А нельзя просто обрезать картинку с листиком по самый кончик?

Или просто этому блоку указать высоту к примеру 143px..

пожалуй да. сплю уже. но всё таки хотелось бы знать решение поставленной проблемы так как поведение z-index нелогично

Link to comment
Share on other sites

  • 0

z-index отсчитывается относительно родителя.


<div style="position: absolute; z-index: 1;">
<span style="position: absolute; z-index: 999;">test 1</span>
</div>

<div style="position: absolute; z-index: 2;">
<span style="position: absolute; z-index: 1;">test 2</span> <!-- этот блок будет выше, потому что 2 > 1 -->
</div>

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy