monicaalee

elevator tab

Oct 27th, 2013
14,846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. /* this part of the code goes under <style> or <style type="text/css"> or before < / style > */
  2.  
  3. /* start of the css coding for the elevator tab by monica (uncraized) */
  4.  
  5. #elevator {
  6. z-index: 1000;
  7. /*increase if it's behind something else*/
  8. height: 96.3%;
  9. /*the height of the tab*/
  10. position: fixed;
  11. text-align: center;
  12. /*you can change it to 'left' or 'right'*/
  13. bottom: 0px;
  14. left: 5px;
  15. -webkit-transition-duration: 1.5s;
  16. /*how long it takes to go up*/
  17. -moz-transition-duration: 1.5s;
  18. /*how long it takes to go up*/
  19. -o-transition-duration: 1.5s;
  20. /*how long it takes to go up*/
  21. transition-duration: 1.5s;
  22. /*how long it takes to go up*/
  23. }
  24.  
  25. #elevator:hover {
  26. z-index:1000;
  27. bottom: 1205px;
  28. left: 5px;
  29. }
  30.  
  31. #room {
  32. bottom: -1200px;
  33. position: absolute;
  34. width: 300px;
  35. /*width of tab*/
  36. height: 100%;
  37. overflow: hidden;
  38. /*change to 'scroll' if you want a scrollbar*/
  39. padding: 10px;
  40. background: white;
  41. /*the tab's background color*/
  42. opacity: 1;
  43. line-height: 13px;
  44. -moz-box-shadow: 0px 0px 3px 1px white;
  45. /*shadow border code*/
  46. -webkit-box-shadow: 0px 0px 3px 1px white;
  47. /*shadow border code*/
  48. box-shadow: 0px 0px 3px 1px white;
  49. /*shadow border code*/
  50. -webkit-border-radius: 3px;
  51. /*rounds the tab's corners*/
  52. -moz-border-radius: 3px;
  53. /*rounds the tab's corners*/
  54. border-radius: 3px;
  55. /*rounds the tab's corners*/
  56. border: 1px solid black;
  57. /*tab border*/
  58. text-align: center;
  59. /*you can change it to 'left' or 'right'*/
  60. }
  61.  
  62. .button {
  63. display: block;
  64. position: fixed;
  65. left: 5px;
  66. /*distance from the left side*/
  67. top: 5px;
  68. /*distance from the top*/
  69. padding: 3px;
  70. width: 35px;
  71. /*width of button*/
  72. height: 35px;
  73. /*height of button*/
  74. background-color: white;
  75. /*button's background color*/
  76. border-radius: 85px;
  77. /*the lower it is, the less round it'll be*/
  78. border: 1px solid black;
  79. /*button border code*/
  80. overflow: hidden;
  81. }
  82.  
  83. .dividers {
  84. border: 1px solid black;
  85. /*border code for dividers*/
  86. width: 95%;
  87. /*width of dividers*/
  88. height: 21px;
  89. /*height of dividers*/
  90. padding: 3px;
  91. margin: auto;
  92. line-height: 20px;
  93. background: white;
  94. /*background color of dividers*/
  95. color: silver;
  96. /*font color of dividers*/
  97. font-weight: bold;
  98. /*font weight (none or bold)*/
  99. }
  100.  
  101. /* end of the css coding for the elevator tab by monica (uncraized) */
  102.  
  103. ---
  104. don't
  105. ---
  106. copy
  107. ---
  108. this
  109. ---
  110. part
  111. ---
  112.  
  113. <!-- this part of the code goes under <body> or before </body> -->
  114.  
  115. <!-- start of the html coding for the elevator tab by monica (uncraized) -->
  116.  
  117. <div id="elevator">
  118.  
  119. <!-- tab image -->
  120. <span class="button">
  121. <img src="https://24.media.tumblr.com/b7bb4273fb93a4bcd5d563a5ae7d5fd3/tumblr_mzbclnnayU1qi3j5bo2_r2_75sq.png" height="35px" width="35px">
  122. </span>
  123. <!-- tab image -->
  124.  
  125. <div id="room">
  126.  
  127. <div class="dividers"> updates </div>
  128. <br>
  129. got a new tab
  130. <br>
  131. <br>
  132.  
  133. <div class="dividers"> networks </div>
  134. <br>
  135. networks
  136. <br>
  137. <br>
  138.  
  139. <div class="dividers"> other </div>
  140. <br>
  141. other stuff
  142. <br>
  143. <br>
  144.  
  145. </div>
  146.  
  147. </div>
  148.  
  149. <!-- end of the html coding for the elevator tab by monica (uncraized) -->
Advertisement
Add Comment
Please, Sign In to add comment