Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the fixed nav #22

Open
Neville2312 opened this issue Nov 28, 2015 · 1 comment
Open

Remove the fixed nav #22

Neville2312 opened this issue Nov 28, 2015 · 1 comment

Comments

@Neville2312
Copy link

Hi, I am unsure how to do this but, I would like to modify the navigation so that it says in its position and doesn't move when the user scrolls, I want this to happen on a device that is a tablet or desktop. Also how could I make the navigation not to appear over the top of content when the navigation is at the top of page. Currently I am using a temporary solution which uses the code that pushs the content that is behind the navigation down the page (my code is padding: 100px 0 0;).

Thanks

@robhadfield
Copy link

Hey @Neville2312 - I'm not sure I 100% understand the question but let's dig in!

To fix the nav at the top of the pages then something like this would do it ...

@media (min-width: 37.5em)
  header {
    margin-bottom: 2em;
    position: fixed; // On IOS you may need to position:absolute this
    background: #fff;
}

...but I don't understand why you want the content to appear over the top of the nav - why not let it scroll out of the way? Does padding the page work? If so it's a perfectly valid solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants