-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex-designs.html
58 lines (58 loc) · 1.89 KB
/
flex-designs.html
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
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<title>HTML flexboxes</title>
<link rel="stylesheet" href="styles/flex-designs.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Inter:wght@200;300;400&family=Roboto:wght@400;500;700;900&display=swap" rel="stylesheet">
</head>
<body>
<div class="main">
<div>
<img src="images/photo-1600077106724-946750eeaf3c.jpeg">
</div>
<div class="profile-info"> <!-- set to flex-1; will make this element stretch across to right end of the 'main' flexbox container,
pushing the 'button-container' button to stick to the end far right -->
<div class="name">Oliver</div>
<div class="nick">The Cat</div>
<div class="category">Popular</div>
</div>
<div class="button-container">
<button>
Follow
</button>
</div>
</div>
<div class="main">
<div>
<img src="images/hannah-grace-fk4tiMlDFF0-unsplash.jpg">
</div>
<div class="profile-info">
<div class="name">Rex</div>
<div class="nick">Sleepy Dog</div>
<div class="category">Popular</div>
</div>
<div class="button-container">
<button>
Follow
</button>
</div>
</div>
<div class="main">
<div>
<img src="images/photo-1583337130417-3346a1be7dee.jpeg">
</div>
<div class="profile-info">
<div class="name">Mimi</div>
<div class="nick">Happy BullDog</div>
<div class="category">Popular</div>
</div>
<div class="button-container">
<button>
Follow
</button>
</div>
</div>
</body>
</html>