-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.css
102 lines (86 loc) · 1.84 KB
/
style2.css
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Poppins:wght@200;400;700&display=swap');
body {
margin: 0;
height: 100vh;
font-family: 'Poppins';
}
.wrapper {
overflow-x: hidden;
position: relative;
}
* {
box-sizing: border-box;
}
.container {
display: flex;
width: 700vw;
.col {
display: flex;
gap: 7em;
p {
font-size: .8rem;
}
}
section {
width: 100vw;
padding: 2vw;
h1 {
font-size: 3rem;
margin: 0;
}
img {
margin-top: 3vw;
width:70%; /* Make the image fill the container */
height:auto;
overflow: hidden;
}
p {
font-size: 1.2rem;
width: 50vw;
}
ul {
list-style-type: none;
display: flex;
gap: 3em;
width: 100%;
height: auto;
padding: 0;
li {
background: white;
border-radius: .3em;
flex-grow: 1;
}
}
}
}
section {
height: 100vh;
}
@media screen and (max-width: 768px) {
.container {
flex-direction: row;
}
.col {
display: flex;
flex-direction: row;
align-items: center;
gap: 1em;
}
span{
margin-bottom: 25%;
font-size: 2em;
}
section {
width: 100%;
text-align: left;
img {
width: 100%;
height: auto; /* Ensure the image maintains its aspect ratio */
overflow: hidden;
margin-top: 1em; /* Add some space between images and other content */
}
p {
width: 80%; /* Adjust width for better text readability on smaller screens */
}
}
}