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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:57:22+00:00 2026-06-09T10:57:22+00:00

Why is this the default padding for twitter bootstrap on the body? body {

  • 0

Why is this the default padding for twitter bootstrap on the body?

body {
  padding-top: 60px;
  padding-left: 20px;
}

I was under the impression that “reset” css-ish files usually removed all padding/margins.

  • 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-09T10:57:24+00:00Added an answer on June 9, 2026 at 10:57 am

    The padding on the body overrides the the .css files.

    As odupont mentioned, “It’s useful when you have a navbar navbar-fixed-top at the top of your page”

    The padding will set a 20px vertical clearance between the top-fixed positioned nav bar and your document’s body. As show in the above code, padding-top: 60px;

    40px vertical padding, to clear out the height of the top-fixed nav-bar, that has a 40px height. And then, 20px vertical clearance between the nav-bar and body. So, 60px for the padding-top was declared.

    That css thing was inserted in the body for specificity purpose, it overrides whatever padding styling you have in the .css file.

    Try to comment the above code, and see the result.

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

Sidebar

Related Questions

I defined main stylesheet (default CSS of my project) like this: body { color:
This is what I came up with to float 'default' to the top and
While some people use this reset. * { margin: 0; padding: 0; } Is
This is my code. <table id=addComments style=width:430px; table-layout:fixed; display:none; padding-right:3px; padding-left:3px;> <tr> <td colspan=3>
I have code like this: <div class=ui-widget> <ul style=list-style-type: none; padding-left: 0; id=menuList> <li>
how to remove CSS default class This is my div <div id=messageContainer> This is
In this article http://www.kashit.org/design/css/ultimate-guide-to-techniques-for-cross-browser-css/ under section Fixing IE Box Model Bug author wrote IE
I have a page with a default CSS file. In this page I have:
I tried to follow this but the default modelbinder let my array null on
Hopefully whoever reads this knows about default arguments: void setCase (string &str, int form

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.