css - margins and alignment in input element in bootstrap -
i having trouble getting input element , button align correctly. looks like:
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; }
Comments
Post a Comment