Please Check out the fiddle on http://jsfiddle.net/Qu63T/1/
What I want is The green div to float next to the blue one. and the .block
divs to appear as a grid. I don't want to remove the .m
div and float the .block
s inside the container. What Can be done without specifying width of .m
No JavaScript Only CSS Solution
You can add a a wrapper div, after .m and before .block and set his width:
Style:
Or you can add some padding in .m, so the blocks will line-break. But that's a wierd solution.