그림안에 투명텍스트박스 넣기... 정보
HTML 그림안에 투명텍스트박스 넣기...첨부파일
본문
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>투명만들기^^</TITLE>
<style type="text/css">
.img_con
{
position:relative;
margin:1px;
float:left;
width:220px;
height:190px;
z-index:54;
}
.r_ima { position:absolute; }
.text_box {
position:absolute;
width:100%;
height:17px;
margin-top:170px;
_margin-top:173px;
padding-top:3px;
background-color:#000000;
filter:Alpha(opacity:50);
opacity:0.5;
font-size:8pt;font-family:돋움;
color:#ffffff;
overflow:hidden;
text-align:center;
z-index:55;
}
</style>
</HEAD>
<BODY>
<div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://www.3aok.com/images/888.gif" width="220" height="190">
<div class="text_box">제로보드에서 그누보드</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://www.donga.com/photo/news/200712/200712100243.jpg" width="220" height="190">
<div class="text_box">소녀시대 이승철과</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
<div class="img_con">
<img class="r_ima" src="http://common.pcbee.co.kr/newimg/2006/gallery/t_wallpaper1.jpg" width="220" height="190">
<div class="text_box">풍경화 그림</div>
</div>
</div>
</BODY>
</HTML>
그림크기는 항상 220 에 190을 유지해야하며
div는 위와같은 형식만 취해주면 됩니다.
div나 이미지크기를 변경할경우 자동으로 위치를 맞춰주게 하려고했는데..
당장 필요한 식으로 만들어서 그렇게는 안해봤습니다 ^^;
초보라 css가 불필요한게 있을지도 모릅니다.
고수분들께서는 잘도와주시면 좋겠습니다 ^^
그림 div.img_con 을 100개를 넣든 8개를 넣든 자동으로 줄바꿈은 됩니다.
FF+IE 다됩니다.
5
댓글 4개
