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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:27:19+00:00 2026-05-25T15:27:19+00:00

I have a layout with a body tag. Body tag as css width for

  • 0

I have a layout with a body tag. Body tag as css width for 960px;

I would like have a DIV inside the body tag, and I need this div be 100% width of the browser windows.

Unfortunately at the moment I’m not able to get the result because the internal div inherit from the body.

My question; How to force a div to scale at 100% width of the current Browser windows even if inside a body tag?.

PS. I try !important on width attribute but does not work

Thanks

  • 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-25T15:27:21+00:00Added an answer on May 25, 2026 at 3:27 pm

    You cant in your case. Instead of width:960px for the body use wrapper.

    <body>
      <div class="wrapper">
        my content goes here
      </div>
      <div>
        my 100% width div goes here
      </div>
    </body>
    
    .wrapper { width:960px; margin:0 auto; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a layout similar to this: <div id=...><img src=...></div> and would like to
I have this JSON layout: [ { tag: div, attr: [ [id, sortSideStyleIlluminated], [class,
In my fixed-width website, I have a layout similar to this: <div id=wrapper> <header>...</header>
I have a layout as follows: <div style=width: 300> <div style=width: 300>Some Content</div> </div
I have a layout 'profile' <div> <div> $this->action(action1, controller1, module1)<div> <div> $this->layout()->content </div> <div>
I have a item (e.g. a div tag, which takes 1/3 of the screen-width
I have a small menu div that i would like to keep in the
I have a simple HTML layout: <div style=position:relative; width:200px> <div style=position:absolute; top:0; left:0; background-color:red;
i have textviews in table layout like this ---------------- |txt1|txt2|txt3| ---------------- |txt4|txt5|txt6| ---------------- |txt7|txt8|txt9|
I have my layout looking like this : <!doctype html> <!--[if lt IE 7

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.