javascript - Place Bootstrap Modal at beginning of specified DIV -
i use bootstrap modal, show bigger version of thumbnails in photo gallery.
the default behavior of bootstrap place bootstrap @ top of viewport, quite alright. in case, people using gallery in iframe
. because of this, want modal dialog appears in same height top of gallery div.
i've tried positioning modal dialog css (top: 123px) since content above gallery changing, won't work. love position modal relative gallery images.
edit: link code is: http://bit.ly/1jcpz9a
just mentioned! position relative :-)
#mymodal { top:0; position: relative; }
just make sure modal markup follows gallery. content after gallery going jump down when dialog appears - i'm hoping don't have content (you mentioned iframe)
otherwise you'll need have wrapper div wrapping content , position modal absolutely w.r.t wrapper div.
Comments
Post a Comment