Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header {
- background-color: [some color];
- position: fixed; /* Makes the bar fixed */
- width: 100%; /* We want the bar to span the width of the window */
- z-index: 2; /* We want the bar to overlap the rest of the content, by default HTML elements have a z-index of 1 and this gives our header priority over default elements*/
- height: [some height]; /* Set a fixed height */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement