Home › Forums › Support › How to vertically center a single div › Reply To: How to vertically center a single div
June 21, 2016 at 9:57 am
#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 7 years, 10 months ago by Roberto Enrique.