jquery - Button fixed position -
i fix position of button, cause when click function showcontacts
loads , display contacts list on screen , button go footer page;
<button class = "btn" type="button" id='button1' style="visibility: hidden" onclick = "showcontacts()">show contacts</button>
first things first, question tagged incorrect. has nothing jquery.
to fix button, add example following css:
.btn{ position: fixed; left: 0; top: 0: }
which fix upper left corner of page.
i recommend learn css first
further reading:
edit:
you could, however, accomplish using jquery:
$('.btn').css({ 'position':'fixed', // more rules );
Comments
Post a Comment