본문으로 바로가기

masking css 처리 스타일링

category StyleSheet/CSS 2015. 2. 11. 18:11

Mask CSS

css
.img_area .img {
	display: block;
}
.img_area .img img {
	max-width: 100%;
	max-height: 100%
}
.img_area .mask {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	border: 1px solid #000;
	opacity: .1;
}
.img_area:hover .mask {
	border: 5px solid red;
	opacity: 1;
}
.img_area .etc {
	position: absolute;
	width: 100%;
	text-align: center;
	bottom: 10px;
	display: none;
}
.img_area:hover .etc {
	display: block;
}



Jaehee's WebClub