-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (62 loc) · 1.48 KB
/
Copy pathindex.html
File metadata and controls
62 lines (62 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width, initial-scale=1.0">
<title>Document</title>
<style>
body {
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
width: 200px;
height: 300px;
padding: 20px;
border: 1px solid black;
border-radius: 12px;
display: flex;
flex-direction: column;
}
.container p {
flex-grow: 1;
margin: 0;
}
.container-1 {
margin-top: 20px;
display: flex;
width: 300px;
}
.container-1 div:nth-child(1) {
background: pink;
flex: 1;
transition: flex 0.2s ease-in-out;
}
.container-1 div:nth-child(2) {
background: papayawhip;
flex: 1;
transition: flex 0.2s ease-in-out;
}
.container-1 div:hover {
/* transition: flex 0.2s ease-in-out; */
flex: 3;
}
</style>
</head>
<body>
<div class="container">
<h3>Flexbox</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Est tenetur ipsum fugit deleniti dolor alias nulla! Nulla nisi excepturi iste ipsa sapiente tenetur labore eligendi exercitationem dolorum harum, vel voluptas.</p>
<button>Ver más</button>
</div>
<div class="container-1">
<div>👍🏼</div>
<div>👎🏼</div>
</div>
</body>
</html>