<style type="text/css">
.css_test {
border-radius : 5px;
border : 5px solid gray;
box-shadow : 0 0 5px silver;
margin : 0 auto;
padding : 5px;
}
.css_test img {
width : 100%;
margin-top : 10px;
}
</style>
이미지는 가로 100% 로 지정되어 있습니다.
<div class="css_test">
<img src="http://cfile1.uf.tistory.com/image/265BB53654DABF75175E9C" style="max-width:200px;" /><br>
max-width : 200px<br>
<img src="http://cfile1.uf.tistory.com/image/265BB53654DABF75175E9C" style="max-width:300px;" /><br>
max-width : 300px<br>
<img src="http://cfile1.uf.tistory.com/image/265BB53654DABF75175E9C" style="max-width:400px;" /><br>
max-width : 400px<br>
<img src="http://cfile1.uf.tistory.com/image/265BB53654DABF75175E9C" />
지정하지 않음<br>
</div>