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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:19:15+00:00 2026-06-10T08:19:15+00:00

What is the essential difference between: position: absolute; top: 0; height: 100%; and position:

  • 0

What is the essential difference between:

position: absolute;
top: 0;
height: 100%;

and

position: absolute;
top: 0;
bottom: 0;
  • 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-10T08:19:16+00:00Added an answer on June 10, 2026 at 8:19 am

    The height of the child element is determined differently for each property:

    bottom: 0 =>
    child_height = parent_height – child_margin – child_border

    height: 100%=>
    child_height = parent_height

    In other words height: 100% sets the inner height of the child to the same height of its parent, while bottom: 0 sets the outer height of the child to the same height of its parent.

    Example from https://jsfiddle.net/2N4QJ/1/

    .parent {
        width: 100px;
        height: 300px;
        position: relative;
        background: #ccc;
        display: block;
        float: left;
        padding: 10px;
        margin: 20px 
    }
    
    .parent > div {
        display: block;
        margin: 10px;
        background: red;
        position: absolute;
        color: white !important;
    }
    
    #c1 {
        top: 0;
        background-color: green;
        height: 100%;
    }
    
    #c2 {
        top: 0;
        background-color: blue;
        bottom: 0;
    }
    <div class="parent">
        <div id="c1">height: 100%, margin: 10px</div>
    </div>
    
    <div class="parent">
        <div id="c2">bottom: 0, margin: 10px</div>
    </div>

    More info about position/dimension:
    http://msdn.microsoft.com/en-us/library/ms530302(VS.85).aspx (archive link)

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

Sidebar

Related Questions

Is there any essential difference between this code: ThreadStart starter = new ThreadStart(SomeMethod); starter.Invoke();
What is essential difference between these methods? query() of JdbcTemplate and createQuery() of EntityManager?
What's the real difference between those two? I mean real, essential difference. What's the
In the Haskell FFI, what is the essential difference between arrays allocated with withArray
What is the difference between public function Foo(ref Bar bar) { bar.Prop = 1;
I was wondering what the difference between the WM_QUIT, WM_CLOSE, and WM_DESTROY messages in
What is the difference between the regular expression * and the expression .* The
I wonder what the difference is between Class.getResource() and ClassLoader.getResource() ? edit: I especially
This is not yet another question about the difference between abstract classes and interfaces,
What are the essential differences between publishing a message using Bus.Publish and sending a

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.