html - Bootstrap 3 - Trouble Vertically Aligning Input Group Button and Form -


sort of weird problem. i'm following this section having little trouble. when button aligned left of field align when button aligned right (which think of more natural "submit" type behavior) there 5-10px of padding on top of button can't rid of:

demonstration of problem

my code below:

<div class="col-sm-7">    <h3>get latest amazon news first:</h3>    <div class="input-group">       <input type="text" class="form-control" placeholder="e-mail" />       <span class="input-group-btn">          <button class="btn btn-default btn-group" type="submit">sign up</button>       </span>    </div><!-- /input-group --> </div><!-- /col-7 --> <div class="col-sm-5">    <h3>get started now:</h3>    <a class="btn btn-large btn-primary" href="#"><i class="icon-caret-right icon-space-right"></i>start free trial!</a> </div> 

i'm pretty confused why work on 1 side , not other. appreciated!

something seems wrong if have written of custom css. copied html , created pen using bootstrap cdn css hosted files. check pen/demo.

it's because somehow adding break tag i.e.
above , below of button element. remove breaks.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -