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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:03:53+00:00 2026-06-14T07:03:53+00:00

I am not a CSS professional. So I only know some basics of it.

  • 0

I am not a CSS professional. So I only know some basics of it. My task is to have 100% body width and at the same time it should not wrap the contents when browser window resizes.

To achieve this I added display: inline-block to my body tag’s CSS style. But when I does that the width gets decreased. Then I try to add width:100% to body style. The width changed as I wanted but then display: inline-block stopped working. How to enable both these properties at the same time?

<body style="display: inline-block; width:100%"><!--content---></body>
  • 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-14T07:03:55+00:00Added an answer on June 14, 2026 at 7:03 am

    Why you want to fix the body width? simply use a container inside the body if you want like

    CSS

    body {
      height: 100%;
      width: 100%;
    }
    
    .container {
      width: 1000px;
      margin: 0 auto;
    }
    

    HTML

    <body>
      <div class="container"></div>
    </body>
    

    OR if you want your content area to be 100% than just change your CSS to this

    CSS

    body {
      height: 100%;
      width: 100%;
    }
    
    .container {
      width: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not expert in CSS in any way; I know it to some extent
I'm not expert about css menus. But I know basic system to make css
I'm using some CSS properties that does not support in CSS 2.1. For example,
I have designed a site and my CSS is not loading in FF and
To be honest, I'm not professional enough in JavaScript, but I have the feeling
I have been attempting to dissect some of the css on the behance.net site.
Is there some kind of not CSS selector? For example when I write the
I have following 2 lines in CSS file (I'm not CSS/html guy) #main_text{background:#0083c3; padding-right:23px;
Using css (not a inline one, but external stylesheet) how do i override the
I am not a CSS expert (mainly because I haven’t had the need to

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.