/ Published in: CSS
Solución para DIVs que colapsan. Simplemente agrega la clase group al elemento que colapsa y se mostrará su tamaño.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.group:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } .group { display: inline-block; clear: both; } /* start commented backslash hack \*/ * html .group { height: 1%; } .group { display: block; } /* close commented backslash hack */