ul,li,div,span { margin:0; padding:0; } li { list-style:none; } span { display:block; border-bottom:1px solid black; background-color:orange; } .wrap { width:400px; height:500px; border:1px solid black; } .wrap li { width:400px; height:40px; overflow:hidden; } ul li.checked { height:340px; } .wrap li span { height:39px; line-height:39px; text-indent:20px; } .wrap li div { height:300px; line-height:300px; text-align:center; font-size:50px; }