CSS

Constructing a Photo Album

In this example we use the W3.CSS Responsive Grid system to create a photo album that looks good on all devices. You will learn more about this later.

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”stylesheet” href=”https://www.w3schools.com/w3css/4/w3.css”>
<body>

<div class=”w3-container w3-teal”>
<h1>Summer 2015</h1>
</div>

<div class=”w3-row-padding w3-margin-top”>
<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_5terre.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>5 Terre</h5>
</div>
</div>
</div>

<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_monterosso.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>Monterosso</h5>
</div>
</div>
</div>

<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_vernazza.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>Vernazza</h5>
</div>
</div>
</div>
</div>

<div class=”w3-row-padding w3-margin-top”>
<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_manarola.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>Manarola</h5>
</div>
</div>
</div>

<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_corniglia.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>Corniglia</h5>
</div>
</div>
</div>

<div class=”w3-third”>
<div class=”w3-card”>
<img src=”img_riomaggiore.jpg” style=”width:100%”>
<div class=”w3-container”>
<h5>Riomaggiore</h5>
</div>
</div>
</div>
</div>

</body>
</html>

One thought on “Constructing a Photo Album

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다