* { padding:0px; margin:0px; } #box { width:1150px; margin:100px auto; } #box ul li { list-style:none; width:250px; background:#fff; float:left; padding:5px; margin:5px; box-shadow:0px 0px 5px #000; } img { width:250px; transition:1s; }