css - display:flex; cancels margins% on firefox but works on chrome -
i'm using bootstrap , wanted vertically center div class="col-md-12" in div class="row".
so added class div class="row":
.row-vertical-align { display: flex; align-items: center; }
however, div class="col-md-12" have margins in %, working on chrome, not on mozilla.
if remove display:flex;, margins come here goes vertical alignment.
could please me find solution?
thanks in advance.
you can add display: table;
parent class (row) , display:table-cell;vertical-align:middle;
child class (col-md-12).
Comments
Post a Comment