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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:12:58+00:00 2026-06-01T18:12:58+00:00

This should be a pretty simple one. I need the ‘orange’ div to always

  • 0

This should be a pretty simple one. I need the ‘orange’ div to always cover 100% width and 100% height.

Within that div I need the ‘green’ div to also fill 100% width and height of it’s parent, the ‘orange’ div.

Additionally there needs to always be 10px of ‘padding’ inside the ‘orange’ div.

When the window is resized, each div must ‘resize’ respectively so that there are no scrollbars.

http://jsfiddle.net/URwpA/3/

  • 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-01T18:13:00+00:00Added an answer on June 1, 2026 at 6:13 pm

    First way:

    #hold {
     position:absolute;
     top:0px;
     left:0px;
     bottom:0px;
     right:0px;
     background:orange;
     padding:10px;
    }
    #held {
     position:relative;
     width:100%;
     height:100%;
     background:green;
    }
    

    Second way:

    #hold {
     position:absolute;
     top:0px;
     left:0px;
     bottom:0px;
     right:0px;
     background:orange;
    }
    #held {
     position:absolute;
     top:10px;
     left:10px;
     bottom:10px;
     right:10px;
     background:green;
    }
    

    EDIT: The only way I can think of to achieve a layout that I think is being requested in the comment is as follows:

    <html style="height: 100%;">
      <body style="height: 100%;">
        <table style="height: 100%; width: 100%; border: 10px solid orange; background-color: green;">
          <!-- etc... -->
        </table>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be pretty simple, but I am new at LINQ. I have a
This feels like it should be pretty simple, but not much seems to be
I think this should be pretty simple, but I'm a SQL newb. I have
This should be pretty straightforward I would think. I have this string: [quote=Joe Johnson|1]Hi![/quote]
This seems like it should be pretty straight forward, but I'm apparently confused. I
I'm running Mysql 5.0.77 and I'm pretty sure this query should work? SELECT *
This should be simple, but the answer is eluding me. If I've got a
This should be easy (at least no one else seems to be having a
This should be simple, but I'm shredding my hair just trying to think how
I've got a mental block. I'm pretty certain this is a dead simple noob

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.