From 92b57349f21d1f48b239e2648c9a7cfbbc90d8bc Mon Sep 17 00:00:00 2001 From: Laura Alvarez Date: Tue, 9 Oct 2018 17:57:17 -0500 Subject: [PATCH 1/4] Basic layout updated --- src/006-basic-layout/example/example.css | 51 +++++++++++++++++++++++- src/006-basic-layout/example/index.html | 12 +++--- 2 files changed, 56 insertions(+), 7 deletions(-) diff --git a/src/006-basic-layout/example/example.css b/src/006-basic-layout/example/example.css index bdfd29e..24779e2 100644 --- a/src/006-basic-layout/example/example.css +++ b/src/006-basic-layout/example/example.css @@ -1,5 +1,54 @@ /* * Practice : Basic Layout * Version: 1 - * By: xxx + * By: Laura Alvarez */ + +html { + background: rgb(233,233,233); +} + +.page-content { + width: 80%; + margin: 20px auto; +} + +.container1 { + background-color: lightpink; +} + +.header, +.footer { + background-color: rgb(219,79,52); + overflow: hidden; +} + +.header ul, +.footer ul { + list-style: none; + display: inline-flex; + padding-left: 20px; +} + +.header li, +.footer li { + float: left; + color: white; + padding-right: 30px; +} + +.sidebar { + float: left; + width: 30%; + background-color: rgb(135,208,211); + padding-bottom: 30em; +} + +.main { + float: left; + padding: 20px; +} + +.footer { + clear: left; +} \ No newline at end of file diff --git a/src/006-basic-layout/example/index.html b/src/006-basic-layout/example/index.html index d21e25f..0784eb1 100644 --- a/src/006-basic-layout/example/index.html +++ b/src/006-basic-layout/example/index.html @@ -35,8 +35,8 @@

1. Without a wrapper div, with border and negative margin

-
-
+
+
  • Home @@ -50,7 +50,7 @@

    1. Without a wrapper div, with border and negative margin

-
+
-
+