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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:39:02+00:00 2026-06-06T21:39:02+00:00

I’m designing an HTML 5 site using a header, article, and footer. I have

  • 0

I’m designing an HTML 5 site using a header, article, and footer. I have an article with a border on the left and right side at 1px solid black. This is enough to cause the 12 column to wrap, forcing me to size down the app to 11 columns max. This leaves a white space on the right side I’d like to fill up… Is there an easy way to get twitter bootstrap to account for this extra 2px?

Thanks.

  • 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-06T21:39:04+00:00Added an answer on June 6, 2026 at 9:39 pm

    This has already been answered (couldn’t find the question though)

    You have to set borders to an inside element, not the spans themselves, because they are too tightly width’ed.

    Another solution is to change the box-sizing to border-box. But this is css v3.

    Update

    Here are several examples, my best guess is the 3rd or 2nd solution.

    • Demo (jsfiddle)

    • Full screen demo (jsfiddle)

    • Demo responsive (jsfiddle)

    Solution 1 : inners

    As such, will not respond well to responsive (needs @media rules to set the border depending on stacking)

    <div class="row">
        <div class="span3">
            <div class="inner"></div>
        </div>
        <div class="span6">
            <div class="inner"></div>
        </div>
        <div class="span3">
            <div class="inner"></div>
        </div>
    </div>
    
    .row > [class*="span"]:first-child > .inner {
        border-left: 5px solid red;
    }
    .row > [class*="span"]:last-child > .inner {
        border-right: 5px solid red;
    }
    

    Solution 2 : fluid

    As such, will respond well to responsive

    <div class="row-fluid">
        <div class="inner-fluid clearfix">
            <div class="span3"></div>
            <div class="span6"></div>
            <div class="span3"></div>
        </div>
    </div>
    
    .row-fluid > .inner-fluid {
        border: 5px none green;
        border-left-style: solid;
        border-right-style: solid;
    }
    

    Solution 3 : box-sizing

    As such, will not respond well to responsive (needs @media rules to set the border depending on stacking)

    <div class="row foo">
            <div class="span3"></div>
            <div class="span6"></div>
            <div class="span3"></div>
    </div>
    
    .foo [class*="span"] {
      -webkit-box-sizing: border-box;
         -moz-box-sizing: border-box;
          -ms-box-sizing: border-box;
              box-sizing: border-box;
    }
    
    .foo.row > [class*="span"]:first-child {
        border-left: 5px solid orange;
    }
    .foo.row > [class*="span"]:last-child {
        border-right: 5px solid orange;
    }
    

    I hope you’ll find your size.

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

Sidebar

Related Questions

I have thousands of HTML files to process using Groovy/Java and I need to
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the

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.