position 설정에 따른 bottom 의 차이점
relative, absolute, fixed 에 따른 차이점 보기

지정안함

absolute

relative

fixed
bottom 이 적용된 예
기본 상태 (비교용)
position 설정에 따른 bottom 의 차이점<br>
relative, absolute, fixed 에 따른 차이점 보기
<br><br><br><br><br>
<style type="text/css">
.css_test {
border : 3px solid gray;
height : 100px;
margin : 0 auto;
width : 500px;
}
.css_test span {
bottom : 100px;
display : inline-block;
text-align : center;
}
</style>
<div class="css_test">
<span>
<img src="http://superkts.com/img/css/flower273.gif" /><br>지정안함
</span>
<span style="position:absolute;" onclick="$(this).hide()">
<img src="http://superkts.com/img/css/flower273.gif"/><br>absolute
</span>
<span style="position:relative;" onclick="$(this).hide()">
<img src="http://superkts.com/img/css/flower273.gif" /><br>relative
</span>
<span style="position:fixed;" onclick="$(this).hide()">
<img src="http://superkts.com/img/css/flower273.gif" /><br>fixed
</span>
</div>
bottom 이 적용된 예
<br><br>
<div class="css_test">
<span>
<img src="http://superkts.com/img/css/flower272.gif" /><br>1
</span>
<span>
<img src="http://superkts.com/img/css/flower272.gif" /><br>2
</span>
<span>
<img src="http://superkts.com/img/css/flower272.gif" /><br>3
</span>
<span>
<img src="http://superkts.com/img/css/flower272.gif" /><br>4
</span>
</div>
기본 상태 (비교용)