Streaming live at 10am (PST)

Centering a div within a div


Having massive problems with center content in “modal viewer” of project images. It seems that when I specify a parent divs size to be 100% height and width, that fucks up the positioning of the child div that I want to center when its clicked.

Any tips on how to make it work is appreciated, even other methods of achieving the same thing.


Here is my site Read-Only:

Hello there @viceur, and welcome to the Webflow forums.

I’ve clicked on your read-only link, but it appears your modal, and its contents, is centred. Did you manage to fix the problem?

Hi! Refresh or re-click on the show/hide eye. The modals are supposed to be hidden when the page loads and I just think the preview function doesn’t really appreciate that.

Can anyone help me with this?