Reply To: How to vertically center a single div

Home Forums Support How to vertically center a single div Reply To: How to vertically center a single div

Home Forums Support How to vertically center a single div Reply To: How to vertically center a single div

#203581
Roberto Enrique

Thanks!

It was so easy

I added a class to the grid-container

<div class="grid-container flex-vertical"></div>

and then the css:


    .flex-vertical{
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
  		
        -ms-flex-align: center;
	-webkit-align-items: center;
	-webkit-box-align: center;

	align-items: center;
    }

And it works beautifully

http://filippogismondo.artomultiplo.net/

  • This reply was modified 5 years ago by Roberto Enrique.