i using jquery.simplemodal plugin , need regarding postion of modal. i've different modals opening @ different position of page i.e. @ top, middle or bottom. want position of modal per position linked i.e. bottom, top or middle. right now, it's 22% top , if click @ bottom, opens page @ top leaving 22% margin @ top.
jquery(function ($) { $('#confirm-dialog input.confirm, #confirm-dialog a.confirm').click(function (e) { confirm(""); }); }); function confirm(message, callback) { $('#confirm').modal({ closehtml: "", position: ["22%",], overlayid: 'confirm-overlay', containerid: 'confirm-container', onshow: function (dialog) { var modal = this; } }); }
try set modal position fixed. more i'd need see html, maybe can make jsfiddle
Comments
Post a Comment