Advertisement
Guest User

IntroJs stacking context bug

a guest
Mar 19th, 2013
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <html>
  2. <link rel="stylesheet" type="text/css" href="https://raw.github.com/usablica/intro.js/master/introjs.css">
  3. <script src="https://raw.github.com/usablica/intro.js/master/intro.js" type="text/javascript"></script>
  4. <script>
  5. </script>
  6. <style>
  7. .head {
  8. height:10px;
  9. width:300px;
  10. background: rgba(0,0,255,0.5);
  11. position:relative;
  12. z-index:2;
  13. border:2px solid blue;
  14. }
  15.  
  16. .content {
  17. height:150px;
  18. width:250px;
  19. background: rgba(255,0,0,0.5);
  20. border:2px solid red;
  21. position:absolute;
  22. top:45px;
  23. left:25px;
  24. z-index:1;
  25. padding:5px;
  26. }
  27. </style>
  28. <body>
  29. <p onclick="introJs().start();">Click here to start tutorial.</p>
  30. <div class="head"></div>
  31.  
  32. <div class="content">
  33. <p data-intro='This is a bug!' data-step='1'>blah blah text</p>
  34. </div>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement