altraviolence

updates tab 01 - solar

Jun 10th, 2017
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.55 KB | None | 0 0
  1. /** PASTE THIS BETWEEN <style> and </style> **/
  2.  
  3. /** UPDATES TAB BY PEACHTHMS | PLEASE DO NOT REMOVE THIS CREDIT **/
  4.  
  5. #solar {
  6.     position: absolute;
  7.     top: 20px;
  8.     left: 20px;
  9.     width: 120px;
  10.     padding: 0 5px;
  11.     background-color: #ffffff;
  12.     color: #696969;
  13. }
  14.  
  15. #solar h1 {
  16.     font-size: 12px;
  17.     text-transform: uppercase;
  18.     text-align: center;
  19.     border-bottom: 2px solid #eeeeee; /** colour of header's bottom border **/
  20.     padding-bottom: 5px;
  21.     cursor: help;
  22. }
  23.  
  24. #solar:hover #celestial {
  25.     display: block;
  26. }
  27.  
  28. #celestial  {
  29.     display: none;
  30.     background-color: #ffffff;
  31.     font-size: 11px;
  32.     text-align: center;
  33.     padding: 0 10px;
  34.     max-height: 500px;
  35.     overflow-y: scroll;
  36. }
  37.  
  38. #celestial img {
  39.     max-width: 100px;
  40. }
  41.  
  42. .lunar h1 {
  43.     margin: 15px 0 -10px 0;
  44.     padding: 0;
  45.     border: none;
  46. }
  47.  
  48.  
  49.  
  50. <!-- PASTE THIS AFTER <body> -->
  51.  
  52. <!-- UPDATES TAB BY PEACHTHMS | PLEASE DO NOT REMOVE THIS CREDIT -->
  53.  
  54. <div id="solar">
  55.  
  56. <h1>updates</h1>
  57.  
  58. <div id="celestial">
  59.  
  60.     <!-- to add more sections copy and paste
  61.    
  62.    <div class="lunar">
  63.        <h1>title</h1>
  64.        <p>text</p>
  65.    </div>
  66.    
  67.    -->
  68.    
  69.     <div class="lunar">
  70.         <h1>title</h1>
  71.         <p>information</p>
  72.     </div>
  73.    
  74.     <div class="lunar">
  75.         <h1>title</h1>
  76.         <p>stats</p>
  77.     </div>
  78.    
  79.     <div class="lunar">
  80.         <h1>title</h1>
  81.         <p>links</p>
  82.     </div>
  83.    
  84. </div><!-- celestial // keep lunar divs above here-->
  85.  
  86. </div><!-- solar // end of updates tab -->
Advertisement
Add Comment
Please, Sign In to add comment