doing it with css would require some nasty css functions that can be slow...That is probably the best way to do it.
On Sat, Jun 9, 2012 at 7:31 PM, greatghoul <[email protected]> wrote: > Is there some css classes for that? > I found an alternative to do that, see this > answer<http://stackoverflow.com/questions/10363161/modal-plugin-of-bootstrap-2-is-not-displayed-by-the-center/10674087#10674087> > on > SO > > $('#YourModal').modal().css( > > > { > > > 'margin-top': function () { > > > return -($(this).height() / 2); > > > } > > > }) > > > On Sun, Jun 10, 2012 at 7:23 AM, Piotrek Okoński <[email protected]>wrote: > >> Hm, doesn't Bootstrap Modal center vertically by itself? > > > > > -- > Ghoul To World! - http://www.g2w.me > ScriptFan - http://scriptfan.com/ > >
