Solución para DIVs que colapsan


/ Published in: CSS
Save to your folder(s)

Solución para DIVs que colapsan. Simplemente agrega la clase group al elemento que colapsa y se mostrará su tamaño.


Copy this code and paste it in your HTML
  1. .group:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
  2. .group { display: inline-block; clear: both; }
  3. /* start commented backslash hack \*/ * html .group { height: 1%; } .group { display: block; } /* close commented backslash hack */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.