Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Test</title>
- <style>
- #topBar {
- position: fixed;
- _position: absolute; /* hack IE6 */
- /* top: -30px; */
- left: 0;
- right: 0;
- height: 30px;
- background: rgb(50,52,54);
- border-bottom: 1px solid rgb(255,255,255);
- z-index: 2;
- }
- .divTest {
- display: inline-block;
- aposition: relative;
- width: 30px;
- height: 30px;
- background: blue;
- }
- </style>
- </head>
- <body>
- <div id="topBar">
- <div class="divTest">A</div>
- <div class="divTest">B</div>
- <div class="divTest">C</div>
- <div class="divTest">D</div>
- <div class="divTest">E</div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment