-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplaytablecell.html
61 lines (52 loc) · 1018 Bytes
/
displaytablecell.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
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
.grid div:nth-child(even){
background:linear-gradient(red,orange,yellow);
}.grid div:nth-child(odd){
background:linear-gradient(blue,violet,yellow);
}
.grid
{
display:grid;
grid-template-columns: 1fr 1fr ;
grid-template-rows: 1fr 1fr 1fr 1fr;
grid-template-areas:". title title ."
". header header ."
". sidebar content ."
". footer footer .";
}
.title{
//grid-column-start: 1;
//grid-column-end:3;
//short hand is: grid-column: 1(start)/3(end);
//grid-row-end: span 2;
grid-area:title;
}
.header{
grid-area:header;
}
.sidebar{
grid-area:sidebar;
}
.content{
grid-area:content;
justify-self:center;
}
.footer{
grid-area:footer;
}
</style>
</head>
<body>
<div class="grid">
<div class="title">title</div>
<div clas="header">header</div>
<div class="sidebar">sidebar</div>
<div class="content">content</div>
<div class="footer">footer</div>
</div>
</body>
</html>