.resources .box2 ul{ width:100%; } .resources .box2 ul li{ float: left; width: 23.75%; margin:0.5%; background: skyblue; }