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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:34:16+00:00 2026-06-04T10:34:16+00:00

I will start developing a new website, and I’m getting ready to deal with

  • 0

I will start developing a new website, and I’m getting ready to deal with the different methods browsers use to calculate width and height of elements (box model stuff). Somehow, it came to my mind: what if I just apply box-sizing to all elements in the website?

I’m one of those who believe that box-sizing: border-box; is one of the best commands there is in CSS, with all its limitations. However, those same limitations are the ones who make me wonder if I should apply box-sizing to all elements:

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; }

Of course my website should be compatible with as much browsers as possible, and box-sizing creates a few questions when we think about IE7-. However, sometimes the schedule is so tight that it would be great to gain a few extra minutes by not worrying about this specific issue.

Anyway, do you think that applying box-sizing:border-box; to all elements is a good policy or should I keep doing so only to the elements that actually need it?

  • 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-04T10:34:18+00:00Added an answer on June 4, 2026 at 10:34 am

    I think it is a great idea. In fact I will start doing the same on my websites.

    Here Paul talks about using it in that same fashion

    http://paulirish.com/2012/box-sizing-border-box-ftw/

    We’ve been using *{box-sizing: border-box;} in one of my projects
    (deployed in production, averaging over 1mln visits a month) at work
    for about a year now, and it seems to be holding up just fine. The
    project has been tested in IE8 & 9 and the latests Firefox and Chrome
    versions and we’ve had no problems. All jQuery (+UI) offset
    calculations and animations run fine, even in any element we’ve
    displayed as inline-block. As of late we’ve started testing the
    project on mobile devices (iPhone, iPad and Android) and we’ve had no
    issues regarding box-sizing with any of them yet, so it seems to work
    just fine.

    I found this to help take care of the issues in IE7

    https://github.com/Schepp/box-sizing-polyfill

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

Sidebar

Related Questions

I will start new PDA project on the windows mobile and compact framework 2.0
I have an application and every new created activity will start an async task
I start developing a new Android application from scratch these days. The company I
I'd like to start developing a new project using sproutcore. Since 2.0 seems quite
I will start a new project as an Eclipse Plugin, but I found that
I will start by saying that I don't think what I want can be
As we all know Java program will start executing from the public static void
I have an asp.net page that calls a dll that will start a long
We have an ASP.Net MVC project that will start with a single web server
I have a Screen name DownloaderScreen when the screen start it will start download

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.