날짜: 2014 4월 9

Why an image inside a div has an extra space below the image?(DIV코딩시 이미지 밑에 공백이 생겼을 경우)

DIV <div class=”app_photo”> <img src=”imgs/photo_no.gif” /> <div class=”btn”><a href=”#”><span class=”s-green”>추가</span></a></div> </div> CSS .app_photo { width:166px; margin: 10px auto 20px auto; border: 5px solid #bec4d0; border-radius:30px;-webkit-border-radius:30px;-moz-border-radius:30px; } .app_photo img { width:100%; height: 146px; border-radius:25px;-webkit-border-radius:25px;-moz-border-radius:25px; } .app_photo .btn { position: absolute; margin: 0 auto; margin-top:-35px; width:155px; } .app_photo .btn a { width: 40px; height:40px; display: block; margin-left: […]

더보기