For my current project, i have to float few blocks to the left. My content block is 720px wide, while the blocks in are 350px width. But somewhy they arent floating each other. SOme of them does, some not. To each block i added rule float:left. I would float them with my hand, but i dont know the order of blocks, so cant predict how will it looks;
Here is screenshot of how does it looks now: http://d.pr/i/OKpc
For my current project, i have to float few blocks to the left. My
Share
If I understand your question correctly, there are a couple different solutions here. First, you could use some modern selectors to add
clear: leftto every even-numbered block:This will not work in Internet Explorer 8 or less.
The next solution involves adding an extra div with
clear: bothafter every second block:HTML:
CSS: