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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:19:48+00:00 2026-06-16T22:19:48+00:00

I tried the following code: <!DOCTYPE html> <html xmlns=http://www.w3.org/1999/xhtml> <head> <title></title> </head> <body> <style

  • 0

I tried the following code:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>

   <style type="text/css">
        #outer {
            width: 90%;
            height: 90%;
            margin: 5% 5% 5% 5%;
            background-color: #333;
        }
        #left-content {
            height: 90%;
            width: 50%;
            padding: 2em;
        }
        #right-content {
            height: 90%;
            width: 50%;
            padding: 2em;
        }
    </style>

    <div id="outer" style="display: block">
      <div id="left-content" style="display: block">xx</div>
      <div id="right-content" style="display: block">xx</div>
    </div>

</body>
</html>

However the outer DIV still doesn’t fill much of the screen. How can I make it so this DIV fills the 90% and just leaves a 5% border?

  • 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-16T22:19:49+00:00Added an answer on June 16, 2026 at 10:19 pm

    You need to give your html and body a height:

    body, html{
        height: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My index.html contains following code: <!DOCTYPE html> <html> <head> <title>Index Page</title> </head> <body id=bd
The following Code <!DOCTYPE html> <html> <head> </head> <body> <div style=width:200px;height:200px;padding:0px;margin:0px;> <div style=background-color:red;position:relative;display:block;text-decoration:none;padding:0px;margin:0px;> <img
I tried the following code: import java.math.BigInteger; import org.apache.commons.codec.binary.Base32; import org.junit.Test; public class Sandbox
I have following code on http://septicsecurity.com/facebook.html It used to work, but does not work
My friend gave the following code which is working awesome here http://jsfiddle.net/WVLE2/ I tried
I have the following code: private function html_Headers() { $data = ' <!DOCTYPE HTML>
Hi. I have the following code that can also be seen live here: http://designliving.tk/test.html
I have the code in my html file <!doctype html> <html ng-app=slider> <head> <script
So I've tried this XHTML 1.1 code (validated at validator.w3.org) in Chrome 6, IE
I want to get script's origin filename in global functions. I tried following code,

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.