Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9055767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:02:12+00:00 2026-06-16T14:02:12+00:00

Simple question, somebody help out? Confused on this. The navbar in question is hidden

  • 0

Simple question, somebody help out? Confused on this.

The navbar in question is hidden when the page loads, and is shown after a form submission along with all the content.

Here is the navbar code:

<div class="navbar" id="mainnav">
<navbar inner code><ul><li's></li's></ul></navbarcode></div>

<div id="contentwrap" class="row" data-spy="scroll" data-target="#mainnav">
Content with all the anchors
</div>

It isn’t attaching itself to the screen, it isn’t spying on the content as I scroll or anything.

Not quite sure. I’m using bootstrap so all relevant files are included. I’ve copied multiple examples verbatim and can’t get it to work.

Here’s a jsfiddle with the full code: http://jsfiddle.net/ccRnM/7/

Note: This navbar is not at the top of the page, there is an image that sets above it and I want to be able to scroll past that into the page content and have the navbar then take hold, somewhat like they do in their example on the bootstrap site.

Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:02:13+00:00Added an answer on June 16, 2026 at 2:02 pm

    Here is one way of doing this. http://jsfiddle.net/panchroma/8jPNm/

    Instead of using scrollspy via javascript I used

    <div class="navbar" id="mainnav" data-spy="affix" data-offset-top="85">
    

    85 is the distance the screen needs to scroll before the navbar affixed, so play with this.

    I also added some CSS to position the navbar after it’s affixed, and added the bootstrap.min.js to the page resources.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Happy Friday! I assume somebody out there has a simple answer to this question
Sure it's a simple question, but I can't fix it, can somebody help me?
I'm hoping this will be a simple question for somebody who knows what they're
This is probably a very simple question for somebody with experience, but I just
Would somebody help me please in this question. I'm new in Matlab... And it's
Simple question I hope.... I have a Win Form with a Tab Control and
This question seems simple, but I couldn't find the proper place to set in
I have a simple html form like this <table> <tr><td >Topic: </td> <td> <input
I'm sorry that I put this question because I think that is simple but
Have a quick theoretical question - if somebody can help answer: The application commands

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.