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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -