css - Nesting flex box -
i find flex box useful, , since discovered tempted use everywhere.
question
is practice nest flex-boxes? having lot of them , nested ones has impact on performance?
in short yes see dip in performance around 10x still talking milliseconds here though.
so wary of using lot of them because 1 change render speed 10ms 100ms lot of them in essence highly increase render time.
plus there comparability browser's , inability play absolute positioning , block element's.
for recommend using display:table
, children display:table-cell
& display:table-row
.
here example of use:
.align-table { display: table; width: 100%; table-layout: fixed; } .t-align { display: table-cell; vertical-align: top; width: 100%; }
Comments
Post a Comment