Advertisement
terrabithia

hover updates

Aug 27th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <!-- an example of this code can be seen on http://jcarstairs.co.vu ; all of the positioning can be changed by altering the :_px elements below -->
  2.  
  3. <!-- this part goes right under <style type="text/css"> -->
  4.  
  5. #omfg {
  6. text-align: center;
  7. font-size: 10px;
  8. position:fixed;
  9. left:0px;
  10. top:500px;
  11. -webkit-transition: all .5s ease-in-out;
  12. -moz-transition: all .5s ease-in-out;
  13. -o-transition: all .5s ease-in-out;
  14. z-index:999;
  15. }
  16.  
  17.  
  18. #lmao {
  19. border-right-style:solid;
  20. border-bottom-style:solid;
  21. border-left-style:solid;
  22. border-color:#000
  23. border-width:0.25px;
  24. border-color:transparent;
  25. padding: 5px 0 5px 0;
  26. background: transparent;
  27. width:160px;
  28. height:150px;
  29. z-index: 9999;
  30. }
  31.  
  32.  
  33.  
  34.  
  35. #dexter {
  36. text-align: center;
  37. font-size: 10px;
  38. position:fixed;
  39. left:0px;
  40. top:580px;
  41. opacity:0;
  42. -webkit-transition: all .5s ease-in-out;
  43. -moz-transition: all .5s ease-in-out;
  44. -o-transition: all .5s ease-in-out;
  45. z-index:999;
  46. }
  47.  
  48. #dexter:hover {opacity:1;}
  49.  
  50. #debra {
  51. border-right-style:solid;
  52. border-bottom-style:solid;
  53. border-left-style:solid;
  54. border-color:#000
  55. border-width:0.25px;
  56. border-color:transparent;
  57. padding: 5px 0 5px 0;
  58. background: transparent;
  59. width:160px;
  60. height:150px;
  61. z-index: 9999;
  62. }
  63.  
  64.  
  65.  
  66.  
  67.  
  68. <!-- this part goes under <body> -->
  69.  
  70. <div id="omfg">
  71. <div id="lmao"> <center>
  72. <p>
  73. </p>
  74. </center></div>
  75. <div id="lmaotab">
  76.  
  77.  
  78. <!-- whatever you want it to say originally, for example, "updates" goes here -->
  79.  
  80. <br></div>
  81. </div>
  82.  
  83.  
  84.  
  85.  
  86. <div id="dexter">
  87. <div id="debra"> <center>
  88. <p>
  89.  
  90. <!-- whatever you want to appear on hover goes here -->
  91.  
  92. </p>
  93. </center></div>
  94. <div id="debratab"><br></div>
  95. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement