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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:35:23+00:00 2026-06-17T12:35:23+00:00

I tried to create HTML document with one layer in center like that: <body>

  • 0

I tried to create HTML document with one layer in center like that:

<body>
 <div id="background">
  LONG TEXT HERE
 </div>
</body>

and I set

html, body  {
    margin: 0;
    height: 100%;
    min-height: 100%;
    background-color: #color1;
}

and

#background  {
    width: 80%;
    height: 100%;
    position: absolute;
    margin-left: 10%;
    display: block;
    margin-right: 10%;
    background-color: #color2;
    top: 0px; 
    bottom: 0px;
}

But somehow if the text exceed height of the display and when I scroll down there is no background. I have checked in FireBug it looks like if the whole document is only the size of the initial window.
I need to make it 100% height. Could you please help me?

  • 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-17T12:35:24+00:00Added an answer on June 17, 2026 at 12:35 pm

    Remove height: 100%; and position: absolute;

    It will work. Like below

    #background  {
      width: 80%;
      margin-left: 10%;
      display: block;
      margin-right: 10%;
      background-color: #093;
      top: 0; 
      bottom: 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my code: <html> <head> <script type=text/JavaScript src=jquery-1.3.2.min.js></script> <script type=text/JavaScript src=jquery.center.js></script> <script type=text/JavaScript> $(document).ready(function(){ $('a').click(function(){
all; I'd like to be able to create a new document in Dreamweaver that
I tried to create jar file using command line that I inserted into java
I tried to create a code that adds 2 percent each time a component
I'm iterating over radio buttons previous neighbors. My html looks like this : <div
$index = Zend_Search_Lucene::create($indexpath); $doc = Zend_Search_Lucene_Document_Html::loadHTMLFile ($targeturl); $title = $doc->title; $body = $doc->body; $doc->addField(Zend_Search_Lucene_Field::Text('title',
This is the JavaScript code in the Chrome background.html. var plugin = document.getElementById(reverbPlugin); if
I have a programmatically created HTML document on which I would like to show
I have tried create this table, but nothing I have tried works from FKs.
Tried to create a mobile navigation using dataview or outline and the view renders

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.