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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:18:26+00:00 2026-06-06T12:18:26+00:00

How do I make a Bootstrap input field be exactly 100% as wide as

  • 0

How do I make a Bootstrap input field be exactly 100% as wide as its parent?

As steve-obrien wrote in Bootstrap Issue #1058:

Setting to 100% does not work when applied directly to an input field as it does not take in to account the padding. So you end up with 100% of the container plus the padding on the input box, so the input box usually breaks outside its container.

That ticket offers various solutions, but I’m looking for the best way to do it — preferably a CSS class already provided by Bootstrap.

  • 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-06T12:18:30+00:00Added an answer on June 6, 2026 at 12:18 pm

    Applying the input-block-level class works great for me, across various screen widths. It is defined by Bootstrap in mixins.less as follows:

    // Block level inputs
    .input-block-level {
      display: block;
      width: 100%;
      min-height: 28px;        // Make inputs at least the height of their button counterpart
      .box-sizing(border-box); // Makes inputs behave like true block-level elements
    }
    

    This is very similar to the style suggested by ‘assembler’ in his comment on issue #1058.

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

Sidebar

Related Questions

How can I make the input field wider than the default in Twitter's Bootstrap?
I make a asp.net usercontrol. its name is ucTreeview. in my page it named:
I'd like to make my Bootstrap dependant on the createdb property in the grails
i installed this extension http://www.cniska.net/yii-bootstrap/ , is possible when i make an ajax request
I am trying to make the bootstrap scaffolding to work. I have two table
I'm trying to make Twitter's Bootstrap API (http://bootstrap.opalang.org/) work in Opa by trying some
To make a primary button using Twitter's Bootstrap library , you need to use
I want to make an application making use of twitter's bootstrap framework. I have
What kind attempts there exist to make Plone 4 themes based on Twitter Bootstrap,
I can make popovers appear using bootstrap easily enough, and I can also do

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.