bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Center modal in the screen

Open apesme opened this issue 12 years ago • 3 comments

It would be nice to have the ability to vertically center the modal whatever is the height of the modal

apesme avatar Jun 17 '14 09:06 apesme

Such a request should be directed to the Bootstrap project as we are don't have any centering logic and the whole positioning is done by Bootstrap's CSS.

pkozlowski-opensource avatar Jun 17 '14 09:06 pkozlowski-opensource

Well, there is actually no css rules exisiting for doing this. you'll have to calculate the position everytime the height change. and all solutions are done via jquery.

apesme avatar Jun 17 '14 12:06 apesme

Actually, you don't need JavaScript to do this. See: http://stackoverflow.com/questions/18422223/bootstrap-3-modal-vertical-position-center. It works perfectly for me.

thomaslhostis avatar Nov 05 '15 13:11 thomaslhostis