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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:16:55+00:00 2026-05-24T20:16:55+00:00

I have some divs all set to width:100% on my website: <div id=participate class=test>

  • 0

I have some divs all set to width:100% on my website:

<div id="participate" class="test">
  participate
</div>

<div id="description" class="test">

  <div id="brief" style="display:table-cell">
&nbsp;
  </div>

  <div id="price" style="display:table-cell">
&nbsp;
  </div>

</div>

<div id="bottom" class="test">

  <div id="partners" class="test">
&nbsp;
  </div>

  <div id="content" class="test">
&nbsp;
  </div>

</div>

Only #bottom has set display:table. When I set border I see #border is smaller excatly 2px than others div.

When I set #border width:100.3% it is ok however this solution seems retarted to me. The problem is present in chromium and absent in firefox.

Why is that and how can I get rid of it?

Any hint’ll be appreciated.

  • 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-24T20:16:56+00:00Added an answer on May 24, 2026 at 8:16 pm

    https://developer.mozilla.org/en/CSS/box-sizing

    div elements default to box-sizing: content-box, in which borders are not part of the width.

    In Chrome, setting display: table forces box-sizing: border-box, in which the borders are part of the width.

    This is shown here: http://jsfiddle.net/thirtydot/wsEkc/

    The easiest way to make the two divs consistent is to apply box-sizing: border-box (and its vendor prefixed variants).

    See: http://jsfiddle.net/wsEkc/3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some divs: <div class=A>Target</div> <div class=A B>NotMyTarget</div> <div class=A C>NotMyTarget</div> <div class=A
I have a set of divs all with the same class (they don't have
Scenerio: I have some divs populated through foreach loop like below <div id=div1><input type=hidden
I seem to be having some trouble with 100% widths. I have 3 divs,
I have a DIV container somewhere on the page with min-width and min-height set
I have 3 divs: .main_content, .content_top, .content_bottom .main_content is set to 100% but 100%
I have some DIVs that I am using JQuery to hide and show using
I have some divs that have dynamic heights controlled by a 'click' function as
I have some divs that have dynamic heights controlled by a 'click' function as
I have some forms, which are in some DIVs. DIVs are hidden, and are

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.