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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -