-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.1.html
56 lines (47 loc) · 1.01 KB
/
index.1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tamaño de items en filas</title>
<style>
body {
font-family: Arial;
}
.container {
display: grid;
grid-template: repeat(2, 200px) / repeat(7, 1fr);
grid-gap: 5px;
height: 100vh;
}
.item {
background: lightblue;
padding: 10px;
border: 1px solid red;
/*margin-right: 10px;*/
/*margin-bottom: 10px;*/
}
.item:nth-of-type(1) {
/* background: blue; */
grid-column: 1 / span 3;
grid-row: 1 / span 2;
}
.item:nth-of-type(2) {
grid-column: 4/ span 2;
grid-row: 1 / span 2;
}
.item:nth-of-type(3) {
grid-column: 6/ span 2;
/* grid-row: 1 / span 2; */
}
</style>
</head>
<body>
<section class="container">
<div class="item">item 1</div>
<div class="item">item 2</div>
<div class="item">item 3</div>
<div class="item">item 4</div>
<div class="item">item 5</div>
</section>
</body>
</html>