css - Divs floating in tabular way inside another Div -


good morning, i've been trying make divs float inside bigger div in tabular way, divs float top bottom , left right (please see image), achievable css only? enter image description here

i using float:left inner divs.

one more thing, divs float because page might grow depending on screen size.

thank you!

you can using css3 columns. here's jsfiddle demonstrating it. css quite simple:

.col-4-div { columns: 10px 4; -webkit-column-count: 4; -webkit-column-gap: 10px; -moz-column-count: 4; -moz-column-gap: 10px; } 

note there declarations here satisfy ie10, webkit , firefox browsers. unfortunately earlier versions of ie not support this.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -