![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello! (please read this message using fixed-font) I'm writting a website with boxes of content. The number of cells in each row might change depending on the browser window size, and the content will be something like this: AAAAA BBBBB CCCCF AAAAA BBBBB BBBBB BBBBB DDDDD EEEEE FFFFF EEEEE FFFFF EEEEE FFFFF EEEEE I'm trying to use this box model in CSS: .caixa { width: 190px; height: 150px; margin: 0 10px 10px 0; float: left; display: block; } It works, but the problem is that I don't want a fixed height, I want the height to auto adjust (pretty much like a table in HTML). If I remove the height attribute, I get something like this: AAAAA BBBBB CCCCC AAAAA BBBBB BBBBB FFFFF DDDDD BBBBB FFFFF FFFFF EEEEE EEEEE EEEEE EEEEE Please help me! What can I do to get the first behaviour? Thank you in advance! |
![]() |
| Thread Tools | |
| Display Modes | |
| |