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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -