css 이미지 갤러리
이미지 갤러리
다음 이미지 갤러리는 CSS로 생성됩니다.
예
<html>
<head>
<style>
div.gallery {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 180px;
}
div.gallery:hover {
border: 1px solid #777;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 15px;
text-align: center;
}
</style>
</head>
<body>
<div class="gallery">
<a target="_blank" href="fjords.jpg">
<img src="fjords.jpg" alt="Fjords" width="300" height="200">
</a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="gallery">
<a target="_blank" href="forest.jpg">
<img src="forest.jpg" alt="Forest" width="300" height="200">
</a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="gallery">
<a target="_blank" href="lights.jpg">
<img src="lights.jpg" alt="Northern Lights" width="300" height="200">
</a>
<div class="desc">Add a description of the image here</div>
</div>
<div class="gallery">
<a target="_blank" href="mountains.jpg">
<img src="mountains.jpg" alt="Mountains" width="300" height="200">
</a>
<div class="desc">Add a description of the image here</div>
</div>
</body>
</html>

게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1007 | CSS | 8년 전 | 1842 | ||
| 1006 | CSS | 8년 전 | 2545 | ||
| 1005 | CSS | 8년 전 | 2004 | ||
| 1004 | HTML | 8년 전 | 2420 | ||
| 1003 | HTML | 8년 전 | 2853 | ||
| 1002 | HTML | 8년 전 | 3231 | ||
| 1001 | HTML | 8년 전 | 3699 | ||
| 1000 | HTML | 8년 전 | 2174 | ||
| 999 | HTML | 8년 전 | 2402 | ||
| 998 | HTML | 8년 전 | 2330 | ||
| 997 | HTML | 8년 전 | 1949 | ||
| 996 | HTML | 8년 전 | 2230 | ||
| 995 | 기타 | 8년 전 | 2094 | ||
| 994 | 기타 | 8년 전 | 2375 | ||
| 993 | 기타 | 8년 전 | 3237 | ||
| 992 | 반응형 | 8년 전 | 2762 | ||
| 991 | 반응형 | 8년 전 | 1984 | ||
| 990 | 반응형 | 8년 전 | 1954 | ||
| 989 | 반응형 | 8년 전 | 2257 | ||
| 988 | 반응형 | 8년 전 | 2419 | ||
| 987 | 반응형 | 8년 전 | 2513 | ||
| 986 | CSS | 8년 전 | 2657 | ||
| 985 | CSS | 8년 전 | 2716 | ||
| 984 | CSS | 8년 전 | 2680 | ||
| 983 | CSS | 8년 전 | 2361 | ||
| 982 | CSS | 8년 전 | 2027 | ||
| 981 | CSS | 8년 전 | 2149 | ||
| 980 | CSS | 8년 전 | 3643 | ||
| 979 | CSS | 8년 전 | 2935 | ||
| 978 | CSS | 8년 전 | 2170 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기