summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 8 hands-on assignments/Ch8_msglm/ch8grid1/8.3.index.html
blob: 195a419a4c1fd2877b87c7c1df12185939445603 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Grid Gallery</title>
        <meta charset="utf-8">
        <style>
*      { box-sizing: border-box; }
body   { background-color: #FEFEFE; }
header { text-align: center; } 

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    grid-template-rows: auto;
    grid-gap: 2em; gap: 2em; 
} 







        </style> 
    </head>
    <body>
        <header>
            <h1>Grid Gallery</h1>
        </header>
        <main> 
            <div id="gallery">
                <img src="8.3.bird1.jpg" width="200" height="150" alt="Red Crested Cardinal">
                <img src="8.3.bird2.jpg" width="200" height="150" alt="Rose-Breasted Grosbeak">
                <img src="8.3.bird3.jpg" width="200" height="150" alt="Gyrfalcon">
                <img src="8.3.bird4.jpg" width="200" height="150" alt="Rock Wren"> 
                <img src="8.3.bird5.jpg" width="200" height="150" alt="Coopers Hawk">
                <img src="8.3.bird6.jpg" width="200" height="150" alt="Immature Bald Eagle"> 
            </div>
        </main>
    </body>
</html>