css
.image-block { width:78px; margin:0px 10px; float:left; }
.reflection { position:relative; }
.reflection img {
-webkit-transform: scaleY(-1);
-moz-transform: scaleY(-1);
-ms-transform: scaleY(-1);
-o-transform: scaleY(-1);
transform: scaleY(-1);
filter: flipv; opacity:0.20;
filter: alpha(opacity='20');
}
.overlay { position:absolute; top:0px; left:0px; width:78px; height:120px;
background-image: -moz-linear-gradient( center bottom, rgb(255,255,255) 60%, rgba(255,255,255,0) 75%);
background-image: -o-linear-gradient( rgba(255,255,255,0) 25%, rgb(255,255,255) 40%);
background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.60, rgb(255,255,255)), color-stop(0.75, rgba(255,255,255,0)));
filter: progid:DXImageTransform.Microsoft.Gradient( gradientType=0, startColor=0, EndColorStr=#ffffff);
}
html
<div class="image-block">
<img src="images/book1.jpg" alt="" />
<div class="reflection">
<img src="images/book1.jpg" alt="" />
<div class="overlay"></div>
</div>
</div>
div height 100% (0) | 2013.02.04 |
---|---|
배경이미지 css (0) | 2012.12.25 |
css를 만들어주는 사이트 (0) | 2012.11.12 |
width 최소값 (0) | 2012.10.31 |
css 그라데이션 (0) | 2012.10.05 |
댓글 영역