Guest User

Untitled

a guest
Sep 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.82 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.         <head>
  4.                 <title>Test</title>
  5.                 <style>
  6. #topBar {
  7.         position: fixed;
  8.         _position: absolute; /* hack IE6 */
  9.         /* top: -30px; */
  10.         left: 0;
  11.         right: 0;
  12.         height: 30px;
  13.         background: rgb(50,52,54);
  14.         border-bottom: 1px solid rgb(255,255,255);
  15.         z-index: 2;
  16. }
  17. .divTest {
  18.         display: inline-block;
  19.         aposition: relative;
  20.         width: 30px;
  21.         height: 30px;
  22.         background: blue;
  23. }
  24.                 </style>
  25.         </head>
  26.  
  27.         <body>
  28.  
  29. <div id="topBar">
  30.         <div class="divTest">A</div>
  31.         <div class="divTest">B</div>
  32.         <div class="divTest">C</div>
  33.         <div class="divTest">D</div>
  34.         <div class="divTest">E</div>
  35. </div>
  36.  
  37.         </body>
  38. </html>
Add Comment
Please, Sign In to add comment