I have a php page which shows profiles of users from a database.
I have a division of class ‘member’ for each profile.
If i use float-left for .member class, the content division for the profiles does not expand and profiles are shown outside the container. You can see in the following screenshot.
http://s14.postimage.org/failytjs1/With_Float.png
However, If i don’t use float-left for .member class, the content division for the profiles does expand according to the php and profiles are shown inside the container. You can see in the following screenshot.
Add a
overflow: hidden;to the parent element of thedivs with class ‘member’. If the parent element has a height, remove it.