view.skin.php 에서 이미지 테두리
본문
안녕하세요.
본문 첨부 이미지에다가 테두리를 씌우고자 하는데 잘 안되네요 ㅠ
css에서 아래와 같이 할 경우 이미지가 작을 경우 이미지에 꽉 달라붙지 않고
여백이 생깁니다. 이것저것 해봐도 잘 안되네요.ㅠ
#bo_v_img {margin:0 0 20px;overflow:hidden;zoom:1;border:10px solid #efefef}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img img {margin-bottom:0px;max-width:100%;height:auto;}
이미지가 작아도 여백없이 이미지 테두리를 예쁘게 두룰수는 없을까요?!
답변 1
이렇게 해보세요.
#bo_v_img {margin:0 0 20px;width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto;border:10px solid #efefef}
답변을 작성하시기 전에 로그인 해주세요.