html - How to make float : left work same as table-cell? -


i have made 2 css layouts, 1 using display:table , other using float:left. when using float, black div seems overlap behind colored div's above it. how make this similar this?

add clear both

.image-block {   height:300px;   background-color:black;     clear:both; } 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -