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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:09:35+00:00 2026-05-25T03:09:35+00:00

Please take a look at this page: http://uploads.dennismadsen.com/fullwidth.html <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

  • 0

Please take a look at this page:
http://uploads.dennismadsen.com/fullwidth.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="da-DK">
<head>
    <title></title>
</head>
<body style="background-color:#e0e0e0;color:#fff;">

  <div style="position:absolute;width:100%;">
      <div style="background-color:#000;">
        <div style="width:800px;margin:0px auto;text-align:right;">Container width a width of 1500px</div>
      </div>
  </div>
</body>
</html>

The inner div has a width of 800px and should be horizontal centered if the window is bigger than 800px. Try to see the page in a browser window smaller than 800 px. For instance with a width around 500px. Than the black background is not having full width when you scroll right. Why?

  • 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-05-25T03:09:35+00:00Added an answer on May 25, 2026 at 3:09 am

    <div style="background-color:#000;"> is inside <div style="position:absolute;width:100%;">, which width equals the width of the screen. So, <div style="background-color:#000;"> width also equals the width of the screen. As right this div sets the black background, the background width also equals width of the screen, not more. So it does not extend to the right.

    UPDATE

    You can use just two divs:

    <div style="background-color:#000;">
        <div style="width:800px;margin:0px auto;text-align:right;">Container width a width of 1500px</div>
    </div>
    

    Sorry, does not work either. Leaving it here as a non-working sample for reference.

    UPDATE 2

    And now the working variant:

    <div style="background-color:#000;min-width:800px;width:100%">
      <div style="width:800px;margin:0px auto;text-align:right;">Container width a width of 800px</div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please take a look at this page via IE 8 or 9: http://sneakyrascal.com/starpons/about.html As
Please take a look at this page: http://www.carteadenisip.ro/partener/id-753.html - the image is not showing
Please take a look on this tab on this Facebook Page http://www.facebook.com/HotelGuru.sk?sk=app_233066690095330 My question
Please take a look at this site --> http://vanityclaire.com/ (in case it changes in
Please take a look at this page. I wrote click functions for each button
THis is myDB Class //Please take a look at public Cursor getplaces() --- Am
Please take a look at this page : clicking on the orange cart badge
please take a look at the blue menu bar at the top of http://www.animefushigi.com
Please take a look at this example: #include <iostream> #include <vector> #include <string> using
Please take a look at this code: template<class T> class A { class base

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.