-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.html
More file actions
174 lines (157 loc) · 5.5 KB
/
template.html
File metadata and controls
174 lines (157 loc) · 5.5 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>HTML FlexBox Template - Two columns, left menu</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Use this HTML basic website layout template with the navigation menu on the left, the main content at the center, the extra stuff on the right.">
<meta name="generator" content="HAPedit 3.1">
<link rel="canonical" href="https://www.w3docs.com/snippets/html/layout_templates/01.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="HTML FlexBox Template - Two columns, left menu" />
<meta property="og:description" content="Use this HTML basic website layout template with the navigation menu on the left, the main content at the center, the extra stuff on the right." />
<meta property="og:image" content="https://www.w3docs.com/build/images/logo-amp.png" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="192" />
<meta property="og:image:height" content="192" />
<meta property="og:image:alt" content="W3dcos" />
<style type="text/css">
html, body {
margin: 0;
padding: 0;
}
body {
color: #292929;
font: 90% Roboto, Arial, sans-serif;
font-weight: 300;
}
p {
padding: 0 10px;
line-height: 1.8;
}
ul li {
padding-right: 10px;
line-height: 1.6;
}
h3 {
padding: 5px 20px;
margin: 0;
}
div#header {
position: relative;
}
div#header h1 {
height: 80px;
line-height: 80px;
margin: 0;
padding-left: 10px;
background: #e0e0e0;
color: #292929;
}
div#header a {
position: absolute;
right: 0;
top: 23px;
padding: 10px;
color: #006;
}
div#navigation {
background: #7cb71c;
}
div#navigation li {
list-style: none;
}
div#extra {
background: #147FA9;
}
div#footer {
background: #42444e;
color: #fff;
}
div#footer p {
padding: 20px 10px;
}
div#wrapper {
float: left;
width: 100%;
}
div#content {
margin: 0 25%;
}
div#navigation {
float: left;
width: 25%;
margin-left: -100%;
}
div#extra {
float: left;
width: 25%;
margin-left: -25%;
}
div#footer {
clear: left;
width: 100%;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>Header</h1>
<a href="/download/template/1" target="_blank">download this layout</a>
</div>
<div id="wrapper">
<div id="content">
<p><strong>1. Main Content</strong></p>
<h3>The Ultimate Guide to Flexbox </h3>
<p>The Flex Layout module is new layout module in CSS3 made to improve the items align, directions and order
in the container even when they are with dynamic or even unknown size. The prime characteristic of the
flex container is the ability to modify the width or height of its children to fill the available space
in the best possible way on different screen sizes.
</p>
<p>Flexbox is relatively new, but it enjoys excellent browser support today (nearly 83% of browsers support
Flexbox). Flexbox Layout is used for small application components, whereas CSS Grid Layout Module is
aimed to handle the large scale layouts.
</p>
<h3>The Two axes of Flexbox</h3>
<p>When working with flexbox you need to think in terms of two axes ? the main axis and the cross axis. The
main axis is defined by the flex-direction property, and the cross axis runs perpendicular to it.
Everything we do with flexbox refers back to these axes, so it is worth understanding how they work from
the outset.
</p>
</div>
</div>
<div id="navigation">
<p><strong>2. Navigation Menu</strong></p>
<h3>Styling Flex Container</h3>
<ul>
<li>flex-direction</li>
<li>flex-wrap</li>
<li>justify-content</li>
<li>align-content</li>
<li>align-items</li>
</ul>
<h3>Designing Flex Items </h3>
<ul>
<li>order</li>
<li>align-self</li>
<li>flex-grow</li>
<li>flex-shrink</li>
<li>flex-basis</li>
</ul>
</div>
<div id="extra">
<p><strong>3. Additional Stuff</strong></p>
<h3>In this guide you will learn:</h3>
<ul>
<li>How to use CSS Flexbox to build modern layouts</li>
<li>How to align items both vertically and horizontally</li>
<li>How to order items within container</li>
<li>And more</li>
</ul>
</div>
<div id="footer"><p>Footer</p>
</div>
</div>
<script type="text/javascript">AddFillerLink("content", "navigation", "extra")</script>
</body>
</html>