javascript - How to make my button stay in its stationary position -
my problem when try select in selectbox button move below select dropdown list.
i want make button stay if dropdown list in selectbox appear.
current output: http://jsfiddle.net/gzsh6/2/
html:
<div class="form-group input-group fixedbtn"> <button type="button" class="btn btn-warning"><span class="glyphicon glyphicon-list-alt"></span> create account</button> </div> </div>
css:
.fixedbtn { position: fixed; display: block; }
i wouldn't bother fixed or absolute positioning can fickle , not extendable. instead, put height on wrapping element , set overflow visible.
.col-sm-offset-1.col-sm-12 { height: 32px; overflow: visible; margin-bottom: 1.0em; }
here jsfiddle: http://jsfiddle.net/mifi79/jvfv9/2/
the problem absolute positioning answers if add form field above it, break display (here fiddle demo how other solutions break)
Comments
Post a Comment