Repository navigation
Expand file tree
/
Copy pathlake_layout.css
More file actions
136 lines (109 loc) · 1.57 KB
/
Copy pathlake_layout.css
File metadata and controls
136 lines (109 loc) · 1.57 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
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
125
126
127
128
129
130
131
132
133
134
135
136
@charset "utf-8";
/*
New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 2
Case Problem 4
The Great Lakescape Lodge Layout Styles
Filename: lake_layout.css
*/
/* Structural Styles */
body {
margin: 0 auto;
width: 100%;
max-width: 1020px;
min-width: 640px;
display: grid;
grid-template-columns: 70% 30%;
grid-template-rows: auto auto 1200px;
grid-template-areas:
"img img"
"header header"
"leftcol rightcol"
"footer footer";
}
img {
display: block;
width: 100%;
grid-column: 1/3;
}
header {
width: 100%;
grid-column: 1/3;
}
#leftcol {
grid-area: leftcol;
}
#rightcol {
display: inline-block;
grid-area: rightcol;
}
footer {
display: block;
width: 100%;
grid-area: footer;
clear: both;
}
address,
article,
aside,
blockquote,
body,
cite,
div,
dl,
dt,
dd,
em,
figcaption,
figure,
footer,
h1,
h2,
h3,
h4,
h5,
h6,
header,
html,
img,
li,
main,
nav,
ol,
p,
section,
span,
ul {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Header Navigation */
header>nav {
display: table;
width: 100%;
}
header>nav>ul {
display: table-row;
list-style-type: none;
}
header>nav>ul>li {
display: table-cell;
text-align: center;
}
header>nav a {
display: block;
width: 100%;
}
/* Section Layout */
section#leftcol aside {
width: 42%;
float: left;
margin-left: 2.5%;
margin-right: 2.5%;
margin-bottom: 20px;
}
section#leftcol img {
width: 100%;
display: block;
}