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

  • SEARCH
  • Home
  • 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 9267047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:27:32+00:00 2026-06-18T14:27:32+00:00

See the following fiddle: http://jsfiddle.net/HXzPj/6/ HTML: <!DOCTYPE html> <html> <head> <link rel=stylesheet href=http://twitter.github.com/bootstrap/assets/css/bootstrap.css />

  • 0

See the following fiddle: http://jsfiddle.net/HXzPj/6/

HTML:

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />
        <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" />
    </head>
    <body>
        <div class="navbar" style="position:absolute; top:0; width:100%;">
            <div class="navbar-inner"> <a href="#" class="brand">KB</a>

                <ul class="nav">
                    <li class="active"><a href="#">Home</a>

                    </li>
                    <li><a href="#">Create page</a>

                    </li>
                </ul>
                <ul class="nav pull-right">
                    <li>
                        <p class="navbar-text">user@email.com</p>
                    </li>
                    <li class="divider-vertical"></li>
                    <li><a href="#">Upload</a>

                    </li>
                    <li class="divider-vertical"></li>
                    <li><a href="#">Manage</a>

                    </li>
                    <li class="divider-vertical"></li>
                    <li><a href="#">Password</a>

                    </li>
                    <li class="divider-vertical"></li>
                    <li><a href="#">Sign Out</a>

                    </li>
                </ul>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid columns">
                <div class="span2 article-tree">Article-tree</div>
                <div class="span10 content-area">Content-area</div>
            </div>
            <div class="footer">footer</div>
        </div>
    </body>

</html>

And CSS:

 html, body {
    height: 100%;
}
.container-fluid {
    margin: 0 auto;
    height: 100%;
    padding-top: 62px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.columns {
    background-color: #C9E6FF;
    height: 100%;
}
.content-area, .article-tree {
    background: #bada55;
    height: 100%;
}
.footer {
    background: red;
    height: 20px;
}

Everything works fine when the screen width is wide enough to show all elements of the navbar. When the width is reduced, then the navbar stacks nicely but the article-tree and content-area stay in their fixed position, so are partly hidden behind the navbar.

How can I get it so that the content gets pushed below the navbar when it’s stacking? Do I have to use @media for this?

  • 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-18T14:27:33+00:00Added an answer on June 18, 2026 at 2:27 pm

    Problem solved by reworking the whole mess a bit. In case anyone is ever interested in this, here is the code:

    HTML

    <!DOCTYPE html>
    <html>
        <head>
            <link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />
        </head>
        <body>
            <div class="navbar">
                <div class="navbar-inner"> <a href="#" class="brand">KB</a>
                    <ul class="nav">
                        <li class="active"><a href="#">Home</a></li>
                        <li><a href="#">Create page</a></li>
                    </ul>
                    <ul class="nav pull-right">
                        <li><p class="navbar-text">user@email.com</p></li>
                        <li class="divider-vertical"></li>
                        <li><a href="#">Upload</a></li>
                        <li class="divider-vertical"></li>
                        <li><a href="#">Manage</a></li>
                        <li class="divider-vertical"></li>
                        <li><a href="#">Password</a></li>
                        <li class="divider-vertical"></li>
                        <li><a href="#">Sign Out</a></li>
                    </ul>
                </div>
            </div>
    
            <div class="container-fluid container-height">
                <div class="row-fluid full-height">
                    <div class="span2 article-tree">Article-tree</div>
                    <div class="span10 content-area full-height"><div id='paragraphs' data-lorem='5'></div></div>
                </div>
    
            </div>
            <div class="container-fluid footer">
                <div class="footer">footer</div>        
            </div>
        </body>
    
    </html>
    

    CSS

    html, body {
        height: 100%;
    }
    .full-height {
        height: 100%;
    }
    .content-area {
        background: green;
        color: white;
    }
    
    .article-tree {
        background: blue;
        color: white;
    }
    .footer {
        background: red;
    }
    
    .container-height {
        margin: 0 auto;
        min-height: 88%;
        height: auto;    
    }
    

    See jsfiddle: http://jsfiddle.net/pCut6/

    It can be done much better still with more responsive design etc but this should give someone an idea if they’re stuck like me and need an example.

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

Sidebar

Related Questions

I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
I have the following fiddle for people to see http://jsfiddle.net/defaye/DhaHP/4/ The result on full
I have made the following fiddle: http://jsfiddle.net/hxQE4/ See how the right arrow pushes the
I have an HTML CSS Query. I have the following JS Fiddle. http://jsfiddle.net/NC9NL/ If
See the following fiddle: [edit: updated fiddle => http://jsfiddle.net/NYZf8/5/ ] http://jsfiddle.net/NYZf8/1/ (view in different
As you can see in the following Fiddle: http://jsfiddle.net/EvWc4/3/ , I'm currently searching a
Please take a look at the following fiddle: http://jsfiddle.net/ellenchristine/tty3e/ Note that when you expand
Fiddle: http://jsfiddle.net/8xBeW/1/ In the fiddle example you can see the idea I'm kind of
Take a look at the following fiddle: http://jsfiddle.net/DNhAk/14/ When you have an image with
I have the following fiddle: http://jsfiddle.net/yFjtt/1/ The idea is that the user can scroll

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.