* { margin:0; padding:0; } body { min-height:200vh; } div { width:90%; margin:auto; } ul { margin-top:10px; list-style:none; } li { border:1px solid #000; border-radius:5px; width:24%; float:left; margin-right:2px; } img { width:98%; display:block; margin:auto; margin-bottom:5px; }