Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <nav>
- Navbar content
- </nav>
- <div id="mainContent">
- Main page
- </div>
- nav {
- position:fixed;
- height: X%;
- min-height: Ypx;
- }
- #mainContent {
- margin-top: Z; // where Z is the height of nav which is either X% or Ypx
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement