Skip to content

Commit 0986daf

Browse files
committed
feat: building a simple float layout.
1 parent 69b9a62 commit 0986daf

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

starter/04-CSS-Layouts/style.css

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ body {
1414
}
1515

1616
.container {
17-
width: 800px;
17+
width: 1200px;
1818
/* margin-left: auto;
1919
margin-right: auto; */
2020
margin: 0 auto;
2121
}
2222

2323
.main-header {
2424
background-color: #f7f7f7;
25-
background-color: red;
2625
/* padding: 20px;
2726
padding-left: 40px;
2827
padding-right: 40px; */
@@ -301,3 +300,20 @@ nav {
301300
}
302301

303302
/* * !!! Remember that 'float' is an old way to layout website */
303+
304+
article {
305+
/* background-color: green; */
306+
width: 825px;
307+
float: left;
308+
}
309+
310+
aside {
311+
/* background-color: red; */
312+
width: 300px;
313+
float: right;
314+
}
315+
316+
footer {
317+
/* background-color: yellow; */
318+
clear: both; /* * Clear the float: return to normal-flow */
319+
}

0 commit comments

Comments
 (0)