Guest User

Untitled

a guest
Jun 20th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <ul>
  2. <li class="topNav">About Us
  3. <ul class="subNav"><li> Subsection A</li><li>Subsection B</li></ul>
  4. </li>
  5. </ul>
  6.  
  7. .base:hover{position:relative;}
  8.  
  9. <ul id="a">
  10. <li id="b">b</li>
  11. <li id="c">c</li>
  12. </ul>
  13. <div id="d"></div>
  14.  
  15. background: url(blank.gif);
  16.  
  17. <div class="base" style="z-index:2">
  18. <div class="inside">
  19. This has some more text in it. This also has a background. This should obscure the second block of text since it has a higher z-index.
  20. </div>
  21. This has some text in it. This has some text in it. This has some text in it. This has some text in it. This has some text in it.
  22. </div>
  23.  
  24. <div class="base" style="z-index:1">
  25. This is the second div. You should not be seeing this in front of the grey box. This has some text in it. This has some text in it. This has some text in it. This has some text in it. This has some text in it. This second box should be obscured by the grey box.
  26. </div>
Add Comment
Please, Sign In to add comment