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 8450375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:57:09+00:00 2026-06-10T10:57:09+00:00

Here is my css rule together with the markup: <div style = height:100%;> <div

  • 0

Here is my css rule together with the markup:

<div style = "height:100%;">
<div style = "width:220px; margin-left: 200px;font-size:16px; height:auto;">
    <div class='navbar-inner'>
        <div class='container'>
        <ul class="nav nav-list">
            <div>   
            <li <?php if($page == 'upload_track'){ echo "class = \"active\""; }?>><a href = "#">Upload a new Track</a></li>
            <li><a href = "#">View all blog post</a></li>
            <li><a href = "#">View all tracks uploaded</a></li>
        </div>
        </ul>
    </div>
    </div>
</div>
<div style = "width:220px; margin-left: 200px;font-size:16px; height:auto;">

as of now I am making them an inline style so that it would be easy for me to change them. since switching texteditors is kind of a hassle for me.

How would I make that div take up all the available height? like the very bottom of the page. as of now it looks something like this
enter image description here

what I wanted to see is that the black div takes up all the available height in the page

  • 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-10T10:57:10+00:00Added an answer on June 10, 2026 at 10:57 am

    Yes it can be done. Check out this example JSFiddle.

    Basically I changed your HTML to this:

    <div id="navbar">
        <div class='navbar-inner'>
            <div class='container'>
                <ul class="nav nav-list">
                    <div>   
                        <li><a href = "#">Upload a new Track</a></li>
                        <li><a href = "#">View all blog post</a></li>
                        <li><a href = "#">View all tracks uploaded</a></li>
                    </div>
                </ul>
            </div>
        </div>
    </div>
    

    Essentially all I did was remove the outermost div (the one with only the style="height: 100%" on it) and gave the next div an id.

    The CSS is as follows:

    html, body { height: 100%; }
    
    #navbar { 
        /* this was moved from being an inline style in the div: */
        width:220px; margin-left: 200px;font-size:16px;
        height: 100%;
    }​
    

    Basically, in order for the navbar strip to use up 100% of the height, you need to make sure that the html and body actually take up 100% of the available height. (That is, 100% on #navbar is 100% of the height of the parent element; if the parent element isn’t the height of the browser, then it doesn’t work.)
    ​

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

Sidebar

Related Questions

Here's an example @font-face CSS rule: @font-face { font-family: 'DroidSerifBoldItalic'; font-weight: normal; font-style: normal;
Here's my CSS: #social #twitter { background-image: url(../img/twitter.svg); max-height: 32px; max-width: 32px; } And
Here is my css for my map div: #map { position: fixed; top: 9.48em;
The body background is not displaying in firefox. here is my CSS body{ font-family:Trebuchet
I'm trying to create a website with a background-size:100% 100% css rule. It's an
CSS newbie here. Strange thing is happening, I have gaps between links, and I
I need some advanced CSS help here. I have a login button and a
I'm using CSS to redesign QFrame . Here's the CSS code: border: 5px dashed
I'm trying to create a popup for which I am using jQuery's CSS function.Here's
I can't seem to get PIE.htc working on this site. Here's my CSS: section#feature

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.