-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10-responsive-services.html
More file actions
85 lines (75 loc) · 1.92 KB
/
10-responsive-services.html
File metadata and controls
85 lines (75 loc) · 1.92 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<title>Design Agency Services</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/base.css" />
<style type="text/css">
header {
max-width: 54rem;
margin: 4rem auto 0;
padding: 1.2rem;
background-color: #32343c;
color: white;
& p {
margin-block-start: 1rem;
font-size: 1.2rem;
}
}
section {
max-width: 54rem;
margin: 4rem auto 0;
padding: 2.4rem;
background-color: #32343c;
color: white;
display: grid;
gap: 2.4rem;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
/* @media screen and (width > 480px) {
grid-template-columns: repeat(2, 1fr);
}
@media screen and (width > 720px) {
grid-template-columns: repeat(3, 1fr);
} */
}
section>div>h2 {
color: #03dac6;
}
section>div>p {
margin-top: 1rem;
}
</style>
</head>
<body>
<header>
<p>With grid, it's possible to achieve a responsive layout without the use of media queries:
<br><em>grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));</em></p>
</header>
<section>
<div>
<h2>Logo Design</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Magnam recusandae.</p>
</div>
<div>
<h2>Graphic Design</h2>
<p>Corporis quaerat saepe iste id cupiditate perferendis fugiat sapiente natus totam?</p>
</div>
<div>
<h2>Branding</h2>
<p>Adipisci sequi sed velit deserunt asperiores, corporis quaerat saepe iste id.</p>
</div>
<div>
<h2>Photography</h2>
<p>Id cupiditate perferendis fugiat sapiente natus totam? Rerum, libero mollitia?</p>
</div>
<div>
<h2>Video Editing</h2>
<p>Corporis quaerat saepe iste id cupiditate perferendis fugiat sapiente natus totam?</p>
</div>
<div>
<h2>Web Design</h2>
<p>Adipisci sequi sed velit deserunt asperiores, corporis quaerat saepe iste id.</p>
</div>
</section>
</body>
</html>