Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

pagination + navbar not working correctly

Here's the code. I want to click on teaching and go to a new tab but when it goes to new tab I can see first the teaching div and then if I scroll I can see everything. How can I just see the teaching div?

<div class="container">
<nav class="navbar navbar-dark bg-primary navbar-fixed-top pagination pagination-sm">
    <div class="nav navbar-nav">
        <a class="nav-item nav-link active page-item" href="#monajalal">Mona Jalal <span class="sr-only">(current)</span></a>
        <a class="nav-item nav-link page-item" href="#education" target="_blank">Education</a>
        <a class="nav-item nav-link page-item" href="#experience" target="_blank">Experience</a>
        <a class="nav-item nav-link page-item" href="#courseworks" target="_blank">Courseworks</a>
        <a class="nav-item nav-link page-item" href="#teaching" target="_blank">Teaching</a>
        <a class="nav-item nav-link page-item" href="#projects" target="_blank">Projects</a>
        <a class="navbar-brand pull-sm-right m-r-0" href="https://github.com/monajalal"><i class="fa fa-github fa-lg"></i></a>
        <a class="navbar-brand pull-sm-right m-r-2" href="https://twitter.com/MonaJalal_"><i class="fa fa-twitter fa-lg"></i></a>
        <a class="navbar-brand pull-sm-right m-r-4" href="https://www.linkedin.com/in/mona-jalal"><i class="fa fa-linkedin fa-lg"></i></a>
        <a class="navbar-brand pull-sm-right m-r-6" href="http://stackoverflow.com/users/2414957/mona-jalal"><i class="fa fa-stack-overflow fa-lg"></i></a>

    </div>
</nav>
</div>
Steven Parker
Steven Parker
243,656 Points

We would probably need to see more of the code to observe the problem. You can share an entire workspace at once if you make a snapshot of your workspace and post the link to it here.