html - bootstrap row pseudo elements usage -
im wondering , dont know answer bootstrap grid row using display:table , content:"" pseudo elements(after , before) . why using display table there .
.row:after,.row:before{ display:table; }
can explain why using ?
.row:before, .row:after { display: table; }
this supported browsers except ie(6/7). generates pseudo-element before , after content of element contains floats. setting display: table creates anonymous table-cell , new block formatting context. acts prevent top-margin collapse , improve consistency between modern browsers , ie(6/7).
Comments
Post a Comment