-
Notifications
You must be signed in to change notification settings - Fork 0
/
country-info.html
51 lines (42 loc) · 1.14 KB
/
country-info.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>country Info</title>
<style>
#country-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.country {
border: 5px solid tomato;
background-color: salmon;
padding: 10px;
margin: 5px;
border-radius: 10px;
}
@media only screen and (max-width: 576px) {
#country-container {
grid-template-columns: 1fr;
}
}
@media only screen and (min-width: 577px) and (max-width: 992px) {
#country-container {
grid-template-columns: repeat(2, 1fr);
}
}
</style>
</head>
<body>
<h2>Country details</h2>
<section id="country-detail">
</section>
<h1>Country info</h1>
<section id="country-container">
</section>
<script src="js/countryInfo.js"></script>
</body>
</html>