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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:09:33+00:00 2026-06-11T08:09:33+00:00

in bootstrap-responsive.css .row-fluid .span10{ width: 91.45299145299145%; *width: 91.39979996362975%; } I was configuring the sizing,

  • 0

in bootstrap-responsive.css

.row-fluid .span10{
    width: 91.45299145299145%;
    *width: 91.39979996362975%;
}

I was configuring the sizing, but am curious as to how they derived these numbers, and why are they accurate to 14 decimal places?

  • 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-11T08:09:35+00:00Added an answer on June 11, 2026 at 8:09 am

    They start with three values, which can be user-defined:

    @gridColumns: 12;
    @gridColumnWidth: 60px;
    @gridGutterWidth: 20px;
    

    Edit: on Bootstrap 3.0+, the variables are now:

    @grid-columns
    @grid-gutter-width
    @grid-float-breakpoint   // the point at which the navbar stops collapsing
    

    And calculate fixed row width:

    @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
    

    Then they go fluid:

    @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
    @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
    

    And finaly, generate all the spans (that is a bit confusing):

    .spanX (@index) when (@index > 0) {
      (~".span@{index}") { .span(@index); }
      .spanX(@index - 1);
    }
    
    .span (@columns) {
          width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
          *width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
    }
    
    .row-fluid {
      // generate .spanX and .offsetX
      .spanX (@gridColumns);
      .offsetX (@gridColumns);
    }
    

    As you see, LESS does the divisions and multiplications.

    See it yourself:

    1. https://github.com/twitter/bootstrap/blob/master/less/variables.less
    2. https://github.com/twitter/bootstrap/blob/master/less/mixins.less
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to bootstrap-responsive.css file,the media query @media (max-width: 767px) is repeated meaning it occurs
Main question is how to customize bootstrap responsive css? My code partly works but
With twitter bootstrap.css and bootstrap-responsive.css, .span* become equivalent to a .span12 under 768px .
I'm starting a project with Twitter Bootstrap, and quite like the responsive css, making
I'm creating a Site using Twitter Bootstrap 2.0.4 + bootstraps responsive.css. What I don't
If you look at: http://twitter.github.com/bootstrap/scaffolding.html#responsive they have categories for nearly every device. I'd like
The bootstrap-responsive.css file does a wonderful job of turning the navbar into a dropdown
I am new to responsive design, I am toying with twitter bootstrap responsive.css now.
Having issues with Twitter Bootstrap responsive navigation. The best way to explain this is
I've designed a responsive website here: http://zarin.me/cce/ I've used Twitter Bootstrap for the responsive

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.