Solved

Bootstrap input box width

Posted on 2016-11-25
2
13 Views
Last Modified: 2016-11-25
I have a bootstrap group what has a textbox and a button.  I would like to remove the button.  But when I do,  the textbox width decreases greatly.  What I would like to happen is for the textbox to expand to take up the space that was occupied by the removed button.

The following is the html fragment (hopefully sufficient to address the problem):
    <div class="input-group">
      <input type="text" id="txtSearchSelectedPeopleSlide" class="form-control" name="field1" placeholder="This is Readonly input" readonly/>
          <div class="input-group-addon"><a href="#" onClick="SearchRequest(); return false;" class="">Go</a></div>
    </div>    
    

Open in new window

0
Comment
Question by:hbash
2 Comments
 
LVL 9

Accepted Solution

by:
Prasadh Baapaat earned 500 total points
Comment Utility
<div class="input-group">

remove the class from above tag, so it should be only as below:

<div>
0
 
LVL 1

Author Comment

by:hbash
Comment Utility
Thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now