Menu icon Foundation
Controlling Reveal Modal Placement

Is it possible to control the placement of the reveal modal? It is showing at the top of the page and I want it to show somewhat in the middle of the page - where the link to fire the modal window is.

Thanks!

reveal modal

Is it possible to control the placement of the reveal modal? It is showing at the top of the page and I want it to show somewhat in the middle of the page - where the link to fire the modal window is.

Thanks!

Rafi Benkual over 3 years ago

You can use data-v-offset and set a pixel value to push it from the top of the page.

Example in use:

https://github.com/zurb/foundation-sites/blob/develop/test/visual/reveal/reveal-test-data-options.html#L14

sanlorena over 3 years ago

Hi Rafi,

I added the data-v-offset, but it is still showing at the very top, what else could be the issue?