summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 8 hands-on assignments/Ch8_msglm/ch8flex1/8.1.index.html
blob: b0bf600f81a6cace199ceac8959f8de6d96ce88f (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
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html> 
<html lang="en">
    <head>
        <title>Flexbox Gallery</title>
        <meta charset="utf-8">
        <style>

* { 
    box-sizing: border-box; 
}

body { 
    background-color: #FEFEFE; 
}

header { 
    text-align: center; 
}

#gallery { 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around; 
}

img { 
    margin: 1em;
    box-shadow: 10px 10px 10px #777; 
}



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

        </main>
    </body>
</html>