This should be a frequently asked question, but my google-foo does not suit me. Take a look at the beautiful chart:
+ ------------ + + - +
| nav | | |
+ ------------ + | s |
+ - + + - + + - + | i |
|:) | |:) | |:) | | d |
+ - + + - + + - + | e |
| |
+ - + + - + + - + | |
|:) | |:) | |:) | | |
+ - + + - + + - + + - +
+ - + + - + + - + + - +
|:) | |:) | |:) | |:) |
+ - + + - + + - + + - +
It is a container in which there is a div for navigation, a sidebar div and many small divs containing images and text.
What I'm trying to achieve, regardless of the height of the sidebar, the div div will appear in nice rows with as many columns in the given row as it matches. They will be beautifully wrapped under the side panel.
I tried a million different ways, but div divs of images start below the bottom of the sidebar, otherwise line 2 will have 3 divs, and then the fourth one shifted in the sidebar.
+ ------------ + + - +
| nav | | |
+ ------------ + | s |
+ - + + - + + - + | i |
|:) | |:) | |:) | | d |
+ - + + - + + - + | e |
| |
+ - + + - + + - + | |
|:) | |:) | |:) | + - +
+ - + + - + + - + + - +
|: (|
+ - +
+ - + + - + + - + + - +
|: (| |: (| |: (| |: (|
+ - + + - + + - + + - +
Am I missing something obvious? Is this possible, and if so, how?
source share