-
Notifications
You must be signed in to change notification settings - Fork 0
/
animal.html
124 lines (123 loc) · 3.56 KB
/
animal.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<style>
.main {
display: flex;
flex-direction: column;
}
.banner {
background-image: url("https://webstockreview.net/images/banners-clipart-animal-14.jpg");
background-size: cover;
background-position: center;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
position: relative;
}
.parent-container {
padding-top: 4%;
display: flex;
justify-content: center;
}
.container {
display: flex;
align-items: center;
width: 80%;
justify-content: center;
}
@media (max-width: 1020px) {
.container {
flex-direction: column;
}
.image-wrapper > img {
width: 78vw !important;
height: 47vh !important;
}
}
.image-wrapper > img {
width: 33vw;
height: 47vh;
}
.hide-class {
display: none;
}
.text {
font-size: large;
font-family: sans-serif;
padding: 1% 0% 0% 1%;
background-color: pink;
}
</style>
<body>
<div class="main">
<h1
style="display: flex; justify-content: center; background-color: aqua"
>
Animals and planets
</h1>
<div class="banner"></div>
<div id="parent" class="parent-container">
<div class="container">
<div class="text">
<p>
Animals are multicellular, eukaryotic organisms of the kingdom
Animalia. Animals are a diverse group of living organisms that
share certain characteristics, such as being multicellular, having
specialized tissues, and being capable of movement at some stage
in their life.
</p>
</div>
<div class="image-wrapper">
<img
src="http://getwallpapers.com/wallpaper/full/6/d/0/868430-download-free-cute-puppies-wallpaper-hd-1920x1280-free-download.jpg"
alt="Cute puppies"
/>
</div>
<div class="text">
<p>
Planets are celestial bodies orbiting a star or stellar remnant
that are massive. Planets are celestial bodies that orbit a star,
are spherical due to their gravity, and have cleared their orbital
path of other debris. Our Solar System, for example, consists of
eight recognized planets.
</p>
</div>
</div>
</div>
<!-- <button id="close-btn">CLICK ME</button> -->
</div>
<!-- <div style="display: flex">
<input id="text-inp" placeholder="Enter your name" />
<button id="submit-btn">Submit</button>
</div> -->
<div style="display: flex; justify-content: center">
<form
method="post"
style="
display: flex;
flex-direction: column;
width: 20vw;
border: 2px solid black;
padding: 2%;
background-color: azure;
"
id="name-form"
>
<label for="name">Name:</label>
<input type="text" id="name" required />
<label for="email">Suggested Name:</label>
<input type="text" id="suggested" required /><br /><br />
<button id="submit-btn" style="margin-top: 5%">Submit</button>
</form>
</div>
<script src="./index.js"></script>
</body>
</html>