html - Bootstrap 3: Tooltip image just after the input field? -


i question sign image after email address input field , align right center of input field?

glyphicon-question-sign should after input field

<div class="form-group form-group-lg">     <label class="col-md-2 control-label">{{translation.telephone}}:</label>     <div class="col-md-4">         <input type="text" class="form-control"  ng-model="jderetailer.phone" placeholder="telephone">     </div>      <label class="col-md-2 control-label">{{translation.email}}:</label>     <div class="col-md-4">         <input type="text" class="form-control"  ng-model="jderetailer.email" placeholder="email address">         <span style="font-size:1.3em;" class="glyphicon glyphicon-question-sign"  data-toggle="popover" data-content="info tooltip text here" data-trigger="hover"></span>     </div>  </div> 

the form-control class of bootstrap has width:100% property. better way set glyphicon in absolute position right 0 position.

just add property span:

position: absolute; right: 20px; top: 15px; 

and position:relative; parent of span.

here code.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -