css - margins and alignment in input element in bootstrap -


i having trouble getting input element , button align correctly. looks like:

notice bottom alignment of button , input

this comes following code:

<div class="row">      <div class="offset1 span6">           <input type="text" class="l_input" placeholder="enter city"></input>      </div>      <div class="span3">            <button class="l_button btn btn-primary" type="button">search</button>      </div> </div> 

i want input height same button, not case currently. assume because of margins/padding, tried set them 0 px in css: has no impact.

.l_input {  padding: 0px;  margin: 0px;  } 

what need height of input aligned height of search button?

you right, margins , padding in other element. try:

.l_input, .l_button {     padding: 0px;     margin: 0px; } 

updated demo


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -