Fill problem when floating elements inside container

I'm trying to add vertical space between some sections of a page by adding a bottom padding to section containers, but I can't get it to work. I assume this is due to the fact that I have unordered lists inside containers and that the list items are floating (using float: left; ).

I also tried with fields and what not, but to no avail.

+4
source share
2 answers

Floating your containers on the left, as well as adding a bottom margin should fix it

 #developers, #contributors, #playtesters { float: left; margin-bottom: 30px; ... } 
+5
source

Either place the containers to the left, or set the overflow to "auto". In any solution, you still need to set a border to create the above interval.

 #developers, #contributors, #playtester { overflow:auto; } 
+5
source

Source: https://habr.com/ru/post/1385794/


All Articles