forked from Fabenan7/capturethebox_tut03
-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.css
85 lines (68 loc) · 1.61 KB
/
structure.css
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
* {
border: 1px solid black;
}
.topnav {
float: right;
}
.topnav ul li {
float: left;
}
.page {
width: 800px;
margin: auto;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
main {
position: relative;
min-height: 1000px;
}
nav {
width: 200px;
}
.content {
position: absolute;
left: 200px;
top: 0px;
width: 600px;
}
#advertisement {
position: fixed;
top: 200px;
left: 10px;
height: 100px;
width: 100px;
}
.wrapper {
display: grid;
grid-gap: 10px;
grid-template-columns: [col1-start] 100px [col2-start] 100px [col3-start] 100px [col3-end];
grid-template-rows: [row1-start] auto [row2-start] auto [row2-end];
}
.box {
border-radius: 5px;
padding: 20px;
font-size: 150%;
}
.a {
grid-column: col1-start / col3-start;
grid-row: row1-start;
}
.b {
grid-column: col3-start;
grid-row: row1-start / row2-end;
}
.c {
grid-column: col1-start;
grid-row: row2-start;
}
.d {
grid-column: col2-start;
grid-row: row2-start;
}
.flex-container {
display: flex;
}