From 848de4c883512666d8c97f56f0d30a540fda8572 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 14:19:35 -0700 Subject: [PATCH 01/43] Step 1 --- README.md | 94 +++++++++++++++++++++++++++++++++++++-- level-1/step-1/step-1.css | 9 ++-- 2 files changed, 96 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 804e0bba..ff436fe6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# HTML-CSS-Practice-Problems + -## Copyright -© DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. +# HTML-CSS-Practice-Problems + + + +## Setup + +* Clone and fork this GitHub repo + +## Project Summary + +In this project you will be re-creating multiple html templates using the HTML and CSS skills you have learned so far. There will be 3 levels of difficulty, each being a template and having its own steps to get to the end solution. In each step you will be given a jpeg image that you will need to re-create. Each step will be a continuation of the previous. The goal is to get your project to look as close as you can to the design of the images provided. Good luck! + +## IMPORTANT NOTES + +* In this repo we include a folder named base, leave this folder alone. You will not need to change any code in this folder to complete the project. + +* Each level has an index.html file, you will use the same index.html file for each of the steps in the current level. + +* To see your progress right click on the index.html file you are currently working on and select show in finder. Then double click on the index.html file. This should open up a browser tab with what you have so far. + +-------------^^^^^^^^^^^^-------- + +## Level 1 Step 1 + +## Summary + +Create an html document that has the same structure and styling as the step-1.jpg image. + +## Instructions + +* Level 1 Step 1.1 +* We need to place the header on the top of the page. +** Since the header was put in the html file it automatically gets put at the top so we don't need to change the header. + +* Level 1 step 1.2 +* In the step-1.css file, give the div with a class name of .content-left a css style of float: left. +Code Snippet +.content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; +} + +* Level 1 Step 1.3 +* In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. + +Code Snippet + +.content-mid { + width: 66.3%; + + height: 100px; + background: #B0B0B0; + float: left; +} + +* Level 1 Step 1.4 +* In the step-1.css file, give the div with the class name of .footer a css style of position: absolute and bottom: 0. + +Code Snippet + +.footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; +} + +* Now change the size of each div using height and width to make them look like the step-1.jpg. + + + + + + + + + +## Solution + +## Step 2 + +## Copyright + +© DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. diff --git a/level-1/step-1/step-1.css b/level-1/step-1/step-1.css index 1c20aa78..dcd5af4d 100755 --- a/level-1/step-1/step-1.css +++ b/level-1/step-1/step-1.css @@ -14,6 +14,8 @@ /*this height is a placeholder. You will need to make some adjustments to get this container to look like the design */ height: 100px; background: #565555; + float: left; + display: block; } @@ -24,7 +26,7 @@ /*this height is a placeholder. You will need to make some adjustment to get this container to look like the design */ height: 100px; background: #B0B0B0; - + float: right; } /* Step-1.4 you're going to want to add a positioning property to get this container to the bottom of the screen */ @@ -33,5 +35,6 @@ width: 100%; height: 100px; background: #3A3A3A; - -} \ No newline at end of file + position: absolute; + bottom: 0; +} From 6578f33f8d51a63ead8e54eeeb8756cace032396 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 14:36:55 -0700 Subject: [PATCH 02/43] layout changes --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ff436fe6..1cf866a2 100644 --- a/README.md +++ b/README.md @@ -17,19 +17,17 @@ Understand HTML & CSS * Your first step should be connecting your CSS files to the index.html * In every level we have included the possible solution folder please only look at this as a last resort or if you are finished with all the steps and want to see how your solution compares --> - -# HTML-CSS-Practice-Problems - -## Setup - -* Clone and fork this GitHub repo - ## Project Summary In this project you will be re-creating multiple html templates using the HTML and CSS skills you have learned so far. There will be 3 levels of difficulty, each being a template and having its own steps to get to the end solution. In each step you will be given a jpeg image that you will need to re-create. Each step will be a continuation of the previous. The goal is to get your project to look as close as you can to the design of the images provided. Good luck! +## Setup + +* Clone and fork this GitHub Repo +* cd into the project directory + ## IMPORTANT NOTES * In this repo we include a folder named base, leave this folder alone. You will not need to change any code in this folder to complete the project. From 01cb03700397c9d409d491e13ba1277b897917bf Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 14:49:58 -0700 Subject: [PATCH 03/43] more layout changes --- README.md | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 1cf866a2..c7d052a0 100644 --- a/README.md +++ b/README.md @@ -19,41 +19,50 @@ Understand HTML & CSS -## Project Summary +# Project Summary In this project you will be re-creating multiple html templates using the HTML and CSS skills you have learned so far. There will be 3 levels of difficulty, each being a template and having its own steps to get to the end solution. In each step you will be given a jpeg image that you will need to re-create. Each step will be a continuation of the previous. The goal is to get your project to look as close as you can to the design of the images provided. Good luck! ## Setup * Clone and fork this GitHub Repo -* cd into the project directory +* `cd` into the project directory -## IMPORTANT NOTES +## Important Notes -* In this repo we include a folder named base, leave this folder alone. You will not need to change any code in this folder to complete the project. +* In this repo we include a folder named `base`, leave this folder alone. You will not need to change any code in this folder to complete the project. -* Each level has an index.html file, you will use the same index.html file for each of the steps in the current level. +* Each level has an `index.html` file, you will use the same `index.html` file for each of the steps in the current level. -* To see your progress right click on the index.html file you are currently working on and select show in finder. Then double click on the index.html file. This should open up a browser tab with what you have so far. - --------------^^^^^^^^^^^^-------- +* To see your progress right click on the `index.html` file you are currently working on and select show in finder. Then double click on the `index.html` file. This should open up a browser tab with what you have so far. ## Level 1 Step 1 -## Summary +### Summary -Create an html document that has the same structure and styling as the step-1.jpg image. +Create an html document that has the same structure and styling as the `step-1.jpg` image. -## Instructions +### Instructions * Level 1 Step 1.1 -* We need to place the header on the top of the page. -** Since the header was put in the html file it automatically gets put at the top so we don't need to change the header. + * We need to place the header on the top of the page. + * Since the header was put in the html file it automatically gets put at the top so we don't need to change the header. * Level 1 step 1.2 -* In the step-1.css file, give the div with a class name of .content-left a css style of float: left. + * Open `step-1.css` file + * Give the div with a class name of `.content-left` a css style of `float: left`. + *
+ + Code Snippet Title + + ```js + /* + You can put code snippets in bullet lists as well. However make sure the code snippet is on it's own indentation level. Otherwise your bullet list will become double spaced. + */ + ``` +
+ -Code Snippet .content-left{ width: 33.3%; From b2ab967368468706cec17331e99e63a9026d4101 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 14:56:41 -0700 Subject: [PATCH 04/43] changes --- README.md | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index c7d052a0..e4a438dc 100644 --- a/README.md +++ b/README.md @@ -48,29 +48,23 @@ Create an html document that has the same structure and styling as the `step-1.j * We need to place the header on the top of the page. * Since the header was put in the html file it automatically gets put at the top so we don't need to change the header. -* Level 1 step 1.2 +* Level 1 Step 1.2 * Open `step-1.css` file - * Give the div with a class name of `.content-left` a css style of `float: left`. - *
- - Code Snippet Title - - ```js - /* - You can put code snippets in bullet lists as well. However make sure the code snippet is on it's own indentation level. Otherwise your bullet list will become double spaced. - */ + * Give `.content-left` a css style of `float: left`. +
+ + Solution to Step 1.2 + + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + } ``` -
- - - -.content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; -} +
* Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. @@ -86,7 +80,8 @@ Code Snippet } * Level 1 Step 1.4 -* In the step-1.css file, give the div with the class name of .footer a css style of position: absolute and bottom: 0. + * Open `step-1.css` + * Give `.footer` a css style of `position: absolute` and `bottom: 0`. Code Snippet From 98e4311e2806f519b39c920989aa0974c57c7e53 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:04:18 -0700 Subject: [PATCH 05/43] changes --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e4a438dc..5a988208 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ In this project you will be re-creating multiple html templates using the HTML a * Each level has an `index.html` file, you will use the same `index.html` file for each of the steps in the current level. -* To see your progress right click on the `index.html` file you are currently working on and select show in finder. Then double click on the `index.html` file. This should open up a browser tab with what you have so far. +* To see your progress right click on the `index.html` file you are currently working on and select `show in finder`. Then double click on the `index.html` file. This should open up a browser tab with what you have so far. ## Level 1 Step 1 @@ -53,18 +53,19 @@ Create an html document that has the same structure and styling as the `step-1.j * Give `.content-left` a css style of `float: left`.
- Solution to Step 1.2 - - ```css - .content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; - } - ``` -
+ Solution to Step 1.2 + + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + } + ``` + + * Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. From dc375c8da5d3f562deaf42282c40eeed96c1e8f5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:06:36 -0700 Subject: [PATCH 06/43] changes --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5a988208..2ba54bd1 100644 --- a/README.md +++ b/README.md @@ -51,21 +51,22 @@ Create an html document that has the same structure and styling as the `step-1.j * Level 1 Step 1.2 * Open `step-1.css` file * Give `.content-left` a css style of `float: left`. -
- Solution to Step 1.2 +
- ```css - .content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; - } - ``` + Solution to Step 1.2 + +```css +.content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + `float: left;` +} +``` -
+
* Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. From 90a273ce427d27ea396360fe12ecc31e08260c69 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:13:03 -0700 Subject: [PATCH 07/43] changes --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2ba54bd1..15f0a16b 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Create an html document that has the same structure and styling as the `step-1.j * Level 1 Step 1.1 * We need to place the header on the top of the page. - * Since the header was put in the html file it automatically gets put at the top so we don't need to change the header. + * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to change the header. * Level 1 Step 1.2 * Open `step-1.css` file @@ -62,31 +62,41 @@ Create an html document that has the same structure and styling as the `step-1.j height: 100px; background: #565555; - `float: left;` + float: left; } ``` +
* Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. -Code Snippet +
+ + Solution to Step 1.2 +```css .content-mid { width: 66.3%; - + height: 100px; background: #B0B0B0; float: left; } +``` + +
* Level 1 Step 1.4 * Open `step-1.css` * Give `.footer` a css style of `position: absolute` and `bottom: 0`. -Code Snippet +
+ + Solution to Step 1.2 +```css .footer { width: 100%; height: 100px; @@ -94,6 +104,9 @@ Code Snippet position: absolute; bottom: 0; } +``` + +
* Now change the size of each div using height and width to make them look like the step-1.jpg. From 53e312ecd9f2da87335f627949cbeb7a9540a8a2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:17:14 -0700 Subject: [PATCH 08/43] changes --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 15f0a16b..14c01569 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ In this project you will be re-creating multiple html templates using the HTML a ### Summary -Create an html document that has the same structure and styling as the `step-1.jpg` image. +Create a webpage that has the same structure and styling as the `step-1.jpg` image. ### Instructions @@ -68,13 +68,13 @@ Create an html document that has the same structure and styling as the `step-1.j -
+
* Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left.
- Solution to Step 1.2 + Solution to Step 1.3 ```css .content-mid { @@ -94,7 +94,7 @@ Create an html document that has the same structure and styling as the `step-1.j
- Solution to Step 1.2 + Solution to Step 1.4 ```css .footer { From 92148023ef8c112c23268638ca0793b471965058 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:18:29 -0700 Subject: [PATCH 09/43] changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14c01569..df31d58c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima
-
+ * Level 1 Step 1.3 * In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. From 5bae9587f4813291877cee86ec69670c1bde6eae Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:22:56 -0700 Subject: [PATCH 10/43] changes --- README.md | 79 +++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index df31d58c..6fd1f2b5 100644 --- a/README.md +++ b/README.md @@ -49,64 +49,63 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to change the header. * Level 1 Step 1.2 - * Open `step-1.css` file + * Open `step-1.css` * Give `.content-left` a css style of `float: left`. + *
-
- - Solution to Step 1.2 + Solution to Step 1.2 -```css -.content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; -} -``` + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + } + ``` -
+
* Level 1 Step 1.3 -* In the step-1.css file, give the div with the class name of .content-mid a css style of float: left. + * Open `step-1.css` + * Give `.content-mid` a css style of `float: left`. + *
-
+ Solution to Step 1.3 - Solution to Step 1.3 + ```css + .content-mid { + width: 66.3%; + + height: 100px; + background: #B0B0B0; + float: left; + } + ``` -```css -.content-mid { - width: 66.3%; - - height: 100px; - background: #B0B0B0; - float: left; -} -``` +
-
* Level 1 Step 1.4 * Open `step-1.css` * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + *
-
+ Solution to Step 1.4 - Solution to Step 1.4 - -```css -.footer { - width: 100%; - height: 100px; - background: #3A3A3A; - position: absolute; - bottom: 0; -} -``` + ```css + .footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; + } + ``` -
+
* Now change the size of each div using height and width to make them look like the step-1.jpg. From acb315b171150b8046a7a534e549ac72e91ad6dc Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:25:03 -0700 Subject: [PATCH 11/43] changes --- README.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6fd1f2b5..9ba465de 100644 --- a/README.md +++ b/README.md @@ -53,19 +53,19 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * Give `.content-left` a css style of `float: left`. *
- Solution to Step 1.2 + Solution to Step 1.2 - ```css - .content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; - } - ``` + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + } + ``` -
+
* Level 1 Step 1.3 @@ -93,19 +93,19 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * Give `.footer` a css style of `position: absolute` and `bottom: 0`. *
- Solution to Step 1.4 + Solution to Step 1.4 - ```css - .footer { - width: 100%; - height: 100px; - background: #3A3A3A; - position: absolute; - bottom: 0; - } - ``` + ```css + .footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; + } + ``` -
+ * Now change the size of each div using height and width to make them look like the step-1.jpg. From 7d8cd04ba1956a87ff2a8cb0998cad9f864c6710 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:52:43 -0700 Subject: [PATCH 12/43] changes --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ba465de..cc505d02 100644 --- a/README.md +++ b/README.md @@ -107,18 +107,49 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima -* Now change the size of each div using height and width to make them look like the step-1.jpg. +* Level 1 Step 1.5 + * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. +## Solution +
+ Solution +```css +.header { + width: 100%; + height: 100px; + background: #D8D8D8; +} +.content-left { + width: 33.3%; + height: 76vh; + padding-top: 35px; + float: left; + background: #565555; +} +.content-mid { + width: 66.66%; + height: 76vh; + float: left; + background: #B0B0B0; +} -## Solution +.footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; +} +``` +
## Step 2 ## Copyright From 62445f3f8feccfc324ff379bec4137910c0372e9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:54:06 -0700 Subject: [PATCH 13/43] changes --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc505d02..987a016e 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,8 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima ``` -## Step 2 + +## Level 1 Step 2 ## Copyright From 9c2c6ac117534bc367281cf2316e595a49a01c2f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 15:55:29 -0700 Subject: [PATCH 14/43] changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 987a016e..ed8594db 100644 --- a/README.md +++ b/README.md @@ -110,11 +110,11 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * Level 1 Step 1.5 * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. -## Solution +### Solution
- Solution + Level 1 Step 1 ```css .header { From b9ff42037f567bb04af62849c53d209079259399 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 16:51:20 -0700 Subject: [PATCH 15/43] updates made --- README.md | 151 +++++++++++++++++++++++++++++++++++++- level-1/step-1/step-1.css | 24 +++--- level-1/step-2/step-2.css | 9 ++- 3 files changed, 167 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index ed8594db..88855897 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima
- Level 1 Step 1 + step-1.css ```css .header { @@ -153,6 +153,155 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima ## Level 1 Step 2 +### Summary + +Modify our webpage so that it has the same structure and styling as the `step-2.jpg` image. + +### Instructions + +* Level 1 Step 2.1 + * Open `step-2.css`. + * Give the `.profile-image-container` a height and a width so you can see it on the webpage. + * Give the `.profile-image-container` a `margin-left: auto` and a `margin-right: auto`. This will center the div. + * Give the `.profile-image-container` a `margin-top: 35px`. This will move the div down 35px; + * The div is now looking better but our code is not as DRY as we can make it. Lets switch the three margins we put on `.profile-image-container` and change them to the short-hand version or setting a margin `margin: 35px auto 0 auto`. + * Now that the div with the `.profile-image-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. + *
+ + Solution to Step 2.1 + + ```css + .profile-image-container { + width: 80%; + height: 180px; + margin: 35px auto 0 auto; + background: #96F0F2; + } + ``` + +
+ +* Level 1 Step 2.2 + * Open `step-2.css` + * Give the div with a class of `.profile-links-container` a height and a width so you can see it on the webpage. + * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. + Code Snippet:
+ + + + ```css + { + margin: 20px auto; + } + ``` + +
+ * + *
+ + Solution to Step 1.2 + + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + } + ``` + +
+ + +* Level 1 Step 2.3 + * Open `step-1.css` + * Give `.content-mid` a css style of `float: left`. + *
+ + Solution to Step 1.3 + + ```css + .content-mid { + width: 66.3%; + + height: 100px; + background: #B0B0B0; + float: left; + } + ``` + +
+ + +* Level 1 Step 2.4 + * Open `step-1.css` + * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + *
+ + Solution to Step 1.4 + + ```css + .footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; + } + ``` + +
+ +* Level 1 Step 2.5 + * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. + +### Solution + +
+ + step-2.css + +```css +.logo-container { + width: 26%; + height: 60px; + float: left; + margin-left: 30px; + margin-top: 20px; + background: #4F4949; +} + +.menu-container { + width: 60px; + height: 60px; + float: right; + margin-right: 10px; + margin-top: 20px; + background: #4F4949; +} + +.profile-image-container { + width: 80%; + height: 180px; + margin: auto; + background: #96F0F2; +} + +.profile-links-container { + width: 80%; + height: 300px; + margin: 20px auto; + background: #12F3F7; +} +``` + +
+ +## Level 1 Step 3 + + + ## Copyright © DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. diff --git a/level-1/step-1/step-1.css b/level-1/step-1/step-1.css index dcd5af4d..e0a5a6da 100755 --- a/level-1/step-1/step-1.css +++ b/level-1/step-1/step-1.css @@ -1,4 +1,4 @@ -/* Step-1.1 You don't need to put a position on this element because it is already at the top of the screen */ +/* Position header at the top of screen */ .header { width: 100%; @@ -7,29 +7,27 @@ } -/* Step-1.2 I would suggest using float to get this container in its desired location*/ +/* Position content-left to the left of screen */ .content-left { width: 33.3%; - /*this height is a placeholder. You will need to make some adjustments to get this container to look like the design */ - height: 100px; - background: #565555; + height: 76vh; float: left; - display: block; + background: #565555; } -/* Step-1.3 I would suggest using float to get this container in its desired location. */ +/* Position content-mid to the right of content left. Make this container take up the remaining width of the screen */ .content-mid { - width: 66.3%; - /*this height is a placeholder. You will need to make some adjustment to get this container to look like the design */ - height: 100px; + width: 66.66%; + height: 76vh; + float: left; background: #B0B0B0; - float: right; + } -/* Step-1.4 you're going to want to add a positioning property to get this container to the bottom of the screen */ +/* Position footer at the bottom of screen */ .footer { width: 100%; @@ -37,4 +35,6 @@ background: #3A3A3A; position: absolute; bottom: 0; + + } diff --git a/level-1/step-2/step-2.css b/level-1/step-2/step-2.css index e81e4cef..bc95a2b7 100644 --- a/level-1/step-2/step-2.css +++ b/level-1/step-2/step-2.css @@ -2,7 +2,11 @@ /* Step-2.1 One option to align this container to the center would be to give it a margin-left: auto; and margin-right: auto; */ .profile-image-container { - background: #96F0F2; + width: 80%; + height: 180px; + margin: 35px auto 0 auto; + /*margin: auto;*/ + background: #96F0F2; } /* Step-2.2 One option to align this container to the center would be to give it a margin-left: auto; and margin-right: auto; */ @@ -23,6 +27,3 @@ .menu-container { background: #4F4949; } - - - From dbb2bc5b9e0c26fcf2d65bae590776d82478692d Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 17:49:50 -0700 Subject: [PATCH 16/43] updates --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88855897..ebda4dbd 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,9 @@ Modify our webpage so that it has the same structure and styling as the `step-2. * Level 1 Step 2.2 * Open `step-2.css` - * Give the div with a class of `.profile-links-container` a height and a width so you can see it on the webpage. + * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. + Code Snippet:
@@ -196,7 +197,6 @@ Modify our webpage so that it has the same structure and styling as the `step-2. ```
- * *
Solution to Step 1.2 From cab11f476469a67dbb15132d3de6f5f8c04bb3a5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 17:53:05 -0700 Subject: [PATCH 17/43] changes --- README.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index ebda4dbd..9d1406f6 100644 --- a/README.md +++ b/README.md @@ -184,19 +184,7 @@ Modify our webpage so that it has the same structure and styling as the `step-2. * Level 1 Step 2.2 * Open `step-2.css` * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. - * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. - - Code Snippet:
- - - - ```css - { - margin: 20px auto; - } - ``` - -
+ * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. *
Solution to Step 1.2 From 0efa5e3d9f72aa1517f094f60f5f3d739a1c6778 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 18:24:22 -0700 Subject: [PATCH 18/43] updates --- README.md | 99 ++++++++++++++++++++++++++++----------- level-1/step-2/step-2.css | 5 +- 2 files changed, 76 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 9d1406f6..d874a7a6 100644 --- a/README.md +++ b/README.md @@ -182,20 +182,20 @@ Modify our webpage so that it has the same structure and styling as the `step-2.
* Level 1 Step 2.2 - * Open `step-2.css` + * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. + * Now that the div with the `.profile-links-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. *
- Solution to Step 1.2 + Solution to Step 2.2 ```css - .content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; + .profile-links-container { + width: 80%; + height: 300px; + margin: 20px auto; + background: #12F3F7; } ``` @@ -203,19 +203,23 @@ Modify our webpage so that it has the same structure and styling as the `step-2. * Level 1 Step 2.3 - * Open `step-1.css` - * Give `.content-mid` a css style of `float: left`. + * Open `step-2.css`. + * Give the div with a class of `.logo-container` a height and a width so you can see the element on the webpage. + * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets make it float left by using `float: left`. + * Now the element is too close to the top-left corner. So lets give it a `margin-top` and a `margin-left`. Like this `margin-top: 20px` and `margin-left: 10px`. + * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. *
- Solution to Step 1.3 + Solution to Step 2.3 ```css - .content-mid { - width: 66.3%; - - height: 100px; - background: #B0B0B0; + .logo-container { + width: 26%; + height: 60px; float: left; + margin-left: 30px; + margin-top: 20px; + background: #4F4949; } ``` @@ -223,26 +227,67 @@ Modify our webpage so that it has the same structure and styling as the `step-2. * Level 1 Step 2.4 - * Open `step-1.css` - * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + * Open `step-2.css`. + * Give the div with a class of `.menu-container` a height and a width so you can see the element on the webpage. + * Now we need to move the element over to the right like you see in `step-2.jpg`. So lets make it float right by using `float: right`. + * Now the element is too close to the top-right corner. So lets give it a `margin-top` and a `margin-right`. Like this `margin-top: 20px` and `margin-right: 30px`. + * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. *
- Solution to Step 1.4 + Solution to Step 2.4 ```css - .footer { - width: 100%; - height: 100px; - background: #3A3A3A; - position: absolute; - bottom: 0; + .menu-container { + width: 60px; + height: 60px; + float: right; + margin-right: 10px; + margin-top: 20px; + background: #4F4949; } ```
-* Level 1 Step 2.5 - * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. + *
+ + Solution to Step 2.4 + + ```css + .logo-container { + width: 26%; + height: 60px; + float: left; + margin-left: 30px; + margin-top: 20px; + background: #4F4949; + } + + .menu-container { + width: 60px; + height: 60px; + float: right; + margin-right: 10px; + margin-top: 20px; + background: #4F4949; + } + + .profile-image-container { + width: 80%; + height: 180px; + margin: auto; + background: #96F0F2; + } + + .profile-links-container { + width: 80%; + height: 300px; + margin: 20px auto; + background: #12F3F7; + } + ``` + +
### Solution diff --git a/level-1/step-2/step-2.css b/level-1/step-2/step-2.css index bc95a2b7..390772b4 100644 --- a/level-1/step-2/step-2.css +++ b/level-1/step-2/step-2.css @@ -19,10 +19,13 @@ .logo-container { background: #4F4949; + height: 50px; + width: 50px; + float: left; } -/* Step-2.4 You can either use float left or position absolute to get this element to in the desired location*/ +/* Step-2.4 You can either use float right or position absolute to get this element to in the desired location*/ .menu-container { background: #4F4949; From 901bad96bfbe676785097601df2fc4ecccd4c2a2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 18:33:51 -0700 Subject: [PATCH 19/43] updates --- README.md | 46 +++------------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index d874a7a6..24f8edf5 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to change the header. * Level 1 Step 1.2 - * Open `step-1.css` + * Open `step-1.css`. * Give `.content-left` a css style of `float: left`. *
@@ -69,7 +69,7 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * Level 1 Step 1.3 - * Open `step-1.css` + * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. *
@@ -89,7 +89,7 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima * Level 1 Step 1.4 - * Open `step-1.css` + * Open `step-1.css`. * Give `.footer` a css style of `position: absolute` and `bottom: 0`. *
@@ -249,46 +249,6 @@ Modify our webpage so that it has the same structure and styling as the `step-2.
- *
- - Solution to Step 2.4 - - ```css - .logo-container { - width: 26%; - height: 60px; - float: left; - margin-left: 30px; - margin-top: 20px; - background: #4F4949; - } - - .menu-container { - width: 60px; - height: 60px; - float: right; - margin-right: 10px; - margin-top: 20px; - background: #4F4949; - } - - .profile-image-container { - width: 80%; - height: 180px; - margin: auto; - background: #96F0F2; - } - - .profile-links-container { - width: 80%; - height: 300px; - margin: 20px auto; - background: #12F3F7; - } - ``` - -
- ### Solution
From c624fc79a210a4904ba6218d5ef38ee1a236361a Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 20:06:19 -0700 Subject: [PATCH 20/43] changes --- README.md | 121 ++++++++++++++++++-- level-1/index.html | 4 +- level-1/step-1/step-1.css | 13 --- level-1/step-2/step-2.css | 39 +++---- level-1/step-3/step-3.css | 7 +- level-1/step-4-possible-solution/step-3.css | 5 +- 6 files changed, 141 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 24f8edf5..349f8876 100644 --- a/README.md +++ b/README.md @@ -121,13 +121,11 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima width: 100%; height: 100px; background: #D8D8D8; - } .content-left { width: 33.3%; height: 76vh; - padding-top: 35px; float: left; background: #565555; } @@ -137,7 +135,6 @@ Create a webpage that has the same structure and styling as the `step-1.jpg` ima height: 76vh; float: left; background: #B0B0B0; - } .footer { @@ -172,10 +169,10 @@ Modify our webpage so that it has the same structure and styling as the `step-2. ```css .profile-image-container { - width: 80%; - height: 180px; - margin: 35px auto 0 auto; - background: #96F0F2; + width: 80%; + height: 180px; + margin: 35px auto 0 auto; + background: #96F0F2; } ``` @@ -277,7 +274,7 @@ Modify our webpage so that it has the same structure and styling as the `step-2. .profile-image-container { width: 80%; height: 180px; - margin: auto; + margin: 35px auto 0 auto; background: #96F0F2; } @@ -293,6 +290,114 @@ Modify our webpage so that it has the same structure and styling as the `step-2. ## Level 1 Step 3 +### Summary + +Update our webpage so that it has the same structure and styling as the `step-3.jpg` image. + +### Instructions + +* Level 1 Step 3.1 + * Open `step-3.css`. + * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. + * Now our element is showing on the webpage. Good Job! + *
+ + Solution to Step 3.1 + + ```css + .content-mid-header { + background: #444; + height: 100px; + } + ``` + +
+ +* Level 1 Step 3.2 + * Open `index.html`. + * Look for the div with a class of `content`. It is inside the `content-left` div. Once you've found it insert a p tag inside the div and add some text inside. + *
+ + Solution to Step 3.2 + + ```html +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+ ``` + +
+ + + +* Level 1 Step 3.3 + * Open `step-3.css` + * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. + * We should also fix the way the text is aligned. For that lets add `text-align: center`. + * Lastly our div seems to look a little short. Giving it a height should fix that. Try this `height: 275px`. Looking alot better. Lets continue! + *
+ + Solution to Step 3.3 + + ```css + .content { + padding: 50px; + text-align: center; + height: 275px; + } + ``` + +
+ + +* Level 1 Step 3.4 + * Open `step-1.css`. + * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + *
+ + Solution to Step 1.4 + + ```css + .footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; + } + ``` + +
+ +* Level 1 Step 1.5 + * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. + +### Solution + +
+ + step-1.css + +```css +.content-mid-header { + height: 100px; + background: #444; +} + +.content-container { + width: 80%; + margin: 40px auto; + background: #D8D8D8; +} + +.content { + height: 275px; + padding:50px; + text-align: center; +} +``` + +
## Copyright diff --git a/level-1/index.html b/level-1/index.html index a59bab53..39b18a19 100644 --- a/level-1/index.html +++ b/level-1/index.html @@ -54,7 +54,7 @@
- +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

@@ -68,4 +68,4 @@ - \ No newline at end of file + diff --git a/level-1/step-1/step-1.css b/level-1/step-1/step-1.css index e0a5a6da..f81e0d96 100755 --- a/level-1/step-1/step-1.css +++ b/level-1/step-1/step-1.css @@ -1,14 +1,9 @@ -/* Position header at the top of screen */ - .header { width: 100%; height: 100px; background: #D8D8D8; - } -/* Position content-left to the left of screen */ - .content-left { width: 33.3%; height: 76vh; @@ -16,25 +11,17 @@ background: #565555; } - -/* Position content-mid to the right of content left. Make this container take up the remaining width of the screen */ - .content-mid { width: 66.66%; height: 76vh; float: left; background: #B0B0B0; - } -/* Position footer at the bottom of screen */ - .footer { width: 100%; height: 100px; background: #3A3A3A; position: absolute; bottom: 0; - - } diff --git a/level-1/step-2/step-2.css b/level-1/step-2/step-2.css index 390772b4..efc58d60 100644 --- a/level-1/step-2/step-2.css +++ b/level-1/step-2/step-2.css @@ -1,32 +1,31 @@ +.logo-container { + width: 26%; + height: 60px; + float: left; + margin-left: 30px; + margin-top: 20px; + background: #4F4949; +} -/* Step-2.1 One option to align this container to the center would be to give it a margin-left: auto; and margin-right: auto; */ +.menu-container { + width: 60px; + height: 60px; + float: right; + margin-right: 10px; + margin-top: 20px; + background: #4F4949; +} .profile-image-container { width: 80%; height: 180px; margin: 35px auto 0 auto; - /*margin: auto;*/ background: #96F0F2; } -/* Step-2.2 One option to align this container to the center would be to give it a margin-left: auto; and margin-right: auto; */ - .profile-links-container { + width: 80%; + height: 300px; + margin: 20px auto; background: #12F3F7; } - -/* Step-2.3 You can either use float left or position absolute to get this element to in the desired location */ - -.logo-container { - background: #4F4949; - height: 50px; - width: 50px; - float: left; -} - - -/* Step-2.4 You can either use float right or position absolute to get this element to in the desired location*/ - -.menu-container { - background: #4F4949; -} diff --git a/level-1/step-3/step-3.css b/level-1/step-3/step-3.css index ad33a4c4..4e142752 100755 --- a/level-1/step-3/step-3.css +++ b/level-1/step-3/step-3.css @@ -1,6 +1,7 @@ -/* Step-3.1 Not much to do here except add a width */ +/* Step-3.1 Not much to do here except add a height */ .content-mid-header { background: #444; + height: 100px; } @@ -13,5 +14,7 @@ /* Step-3.2 Remember to add some padding and text-align*/ .content { - + padding: 50px; + text-align: center; + height: 275px; } diff --git a/level-1/step-4-possible-solution/step-3.css b/level-1/step-4-possible-solution/step-3.css index 19f550eb..185ec7fc 100644 --- a/level-1/step-4-possible-solution/step-3.css +++ b/level-1/step-4-possible-solution/step-3.css @@ -11,7 +11,6 @@ .content { height: 275px; - padding:50px; + padding: 50px; text-align: center; - -} \ No newline at end of file +} From de1125e6649f667f40726d33a8e919ea868e50f3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 26 Jun 2017 20:20:23 -0700 Subject: [PATCH 21/43] finished level 1 --- README.md | 26 +++++++++++++------------- level-1/index.html | 5 ++++- level-1/step-3/step-3.css | 2 ++ 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 349f8876..ab8c0968 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,9 @@ Update our webpage so that it has the same structure and styling as the `step-3. ```html
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Sed ut perspiciatis unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam, Sed ut perspiciatis unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam,

``` @@ -351,26 +353,24 @@ Update our webpage so that it has the same structure and styling as the `step-3. * Level 1 Step 3.4 - * Open `step-1.css`. - * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + * Open `step-3.css`. + * Give the element with a class of `content- container` a width of 80%. Like this `width: 80%`. + * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it some margin. Like this `margin: 40px auto`. *
- Solution to Step 1.4 + Solution to Step 3.4 ```css - .footer { - width: 100%; - height: 100px; - background: #3A3A3A; - position: absolute; - bottom: 0; + .content-container { + background: #D8D8D8; + width: 80%; + margin: 40px auto; } ```
-* Level 1 Step 1.5 - * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. + * Wow! That looks pretty good. Congratulations you have finished level-1! ### Solution @@ -392,7 +392,7 @@ Update our webpage so that it has the same structure and styling as the `step-3. .content { height: 275px; - padding:50px; + padding: 50px; text-align: center; } ``` diff --git a/level-1/index.html b/level-1/index.html index 39b18a19..2978d9e8 100644 --- a/level-1/index.html +++ b/level-1/index.html @@ -54,7 +54,10 @@
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Sed ut perspiciatis unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam, Sed ut perspiciatis + unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam,

diff --git a/level-1/step-3/step-3.css b/level-1/step-3/step-3.css index 4e142752..6ded5e89 100755 --- a/level-1/step-3/step-3.css +++ b/level-1/step-3/step-3.css @@ -8,6 +8,8 @@ /* Step-3.3 add a margin top to give this container some space. Also you're going to want to set the margin-left and margin-right to auto. This will give equal distance left and right to the container--essentially--centering the container */ .content-container { background: #D8D8D8; + width: 80%; + margin: 40px auto; } From f224329a7edbacf374f8ff89d3b3c69a7d0d7170 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 10:12:13 -0700 Subject: [PATCH 22/43] changes --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab8c0968..0e857a10 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,17 @@ In this project you will be re-creating multiple html templates using the HTML a ### Summary -Create a webpage that has the same structure and styling as the `step-1.jpg` image. +In this step, we will create a webpage that has the same structure and styling as the `step-1.jpg` image. We will accomplish this by adding some css styles to our already existing HTML document. ### Instructions +* Open the `level-1` folder and take a look inside. We have folders for steps one through three, a solution folder which is step-4, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. +* Now open the `step-1` folder, and lets start styling. + * Level 1 Step 1.1 + * Open `step-1.css`. * We need to place the header on the top of the page. - * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to change the header. + * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. * Level 1 Step 1.2 * Open `step-1.css`. @@ -400,6 +404,8 @@ Update our webpage so that it has the same structure and styling as the `step-3.
+ + ## Copyright © DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. From 2a4eab47351e2bb2ae7c71bf1d9e5aa8635ebec0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 10:24:43 -0700 Subject: [PATCH 23/43] changes --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0e857a10..47562a2b 100644 --- a/README.md +++ b/README.md @@ -45,14 +45,14 @@ In this step, we will create a webpage that has the same structure and styling a ### Instructions * Open the `level-1` folder and take a look inside. We have folders for steps one through three, a solution folder which is step-4, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. -* Now open the `step-1` folder, and lets start styling. - +* Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. * Level 1 Step 1.1 +In this step, we will position the header at the top of the page. * Open `step-1.css`. * We need to place the header on the top of the page. * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. - * Level 1 Step 1.2 +In this step, we will try to move box named content left to the left side of the page. * Open `step-1.css`. * Give `.content-left` a css style of `float: left`. *
@@ -70,9 +70,8 @@ In this step, we will create a webpage that has the same structure and styling a ```
- - * Level 1 Step 1.3 +In this step, we are going to position the box called content-mid to the left side of the page. * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. *
@@ -90,9 +89,8 @@ In this step, we will create a webpage that has the same structure and styling a ```
- - * Level 1 Step 1.4 +In this step, we will position the footer at the bottom of the page. * Open `step-1.css`. * Give `.footer` a css style of `position: absolute` and `bottom: 0`. *
@@ -110,7 +108,6 @@ In this step, we will create a webpage that has the same structure and styling a ```
- * Level 1 Step 1.5 * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. From 630454483a9ba6e233092ed09f74da65968c484d Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 10:54:41 -0700 Subject: [PATCH 24/43] re-structure --- README.md | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 47562a2b..76eff42d 100644 --- a/README.md +++ b/README.md @@ -31,16 +31,14 @@ In this project you will be re-creating multiple html templates using the HTML a ## Important Notes * In this repo we include a folder named `base`, leave this folder alone. You will not need to change any code in this folder to complete the project. - * Each level has an `index.html` file, you will use the same `index.html` file for each of the steps in the current level. - * To see your progress right click on the `index.html` file you are currently working on and select `show in finder`. Then double click on the `index.html` file. This should open up a browser tab with what you have so far. ## Level 1 Step 1 ### Summary -In this step, we will create a webpage that has the same structure and styling as the `step-1.jpg` image. We will accomplish this by adding some css styles to our already existing HTML document. +In this step, we will create a webpage that has the same structure and styling as the `step-1.jpg` image. We will accomplish this by adding some css styles to our webpage. ### Instructions @@ -54,7 +52,7 @@ In this step, we will position the header at the top of the page. * Level 1 Step 1.2 In this step, we will try to move box named content left to the left side of the page. * Open `step-1.css`. - * Give `.content-left` a css style of `float: left`. + * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. *
Solution to Step 1.2 @@ -66,6 +64,7 @@ In this step, we will try to move box named content left to the left side of the height: 100px; background: #565555; float: left; + padding-top: 35px; } ``` @@ -127,6 +126,7 @@ In this step, we will position the footer at the bottom of the page. .content-left { width: 33.3%; height: 76vh; + padding-top: 35px; float: left; background: #565555; } @@ -153,16 +153,15 @@ In this step, we will position the footer at the bottom of the page. ### Summary -Modify our webpage so that it has the same structure and styling as the `step-2.jpg` image. +In this step, we will create a webpage that has the same structure and styling as the `step-2.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions +* Now open the `step-2` folder and notice that there two items inside. There is a css file named `step-2.css` and an image named `step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Ok, lets start styling. * Level 1 Step 2.1 * Open `step-2.css`. * Give the `.profile-image-container` a height and a width so you can see it on the webpage. - * Give the `.profile-image-container` a `margin-left: auto` and a `margin-right: auto`. This will center the div. - * Give the `.profile-image-container` a `margin-top: 35px`. This will move the div down 35px; - * The div is now looking better but our code is not as DRY as we can make it. Lets switch the three margins we put on `.profile-image-container` and change them to the short-hand version or setting a margin `margin: 35px auto 0 auto`. + * Give the `.profile-image-container` a margin of auto. * Now that the div with the `.profile-image-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. *
@@ -172,13 +171,12 @@ Modify our webpage so that it has the same structure and styling as the `step-2. .profile-image-container { width: 80%; height: 180px; - margin: 35px auto 0 auto; + margin: auto; background: #96F0F2; } ```
- * Level 1 Step 2.2 * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. @@ -275,7 +273,7 @@ Modify our webpage so that it has the same structure and styling as the `step-2. .profile-image-container { width: 80%; height: 180px; - margin: 35px auto 0 auto; + margin: auto; background: #96F0F2; } @@ -293,10 +291,10 @@ Modify our webpage so that it has the same structure and styling as the `step-2. ### Summary -Update our webpage so that it has the same structure and styling as the `step-3.jpg` image. +In this step, we will update our webpage so that it has the same structure and styling as the `step-3.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions - +* Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file and an p tag element in the `index.html` file. Ok, lets begin. * Level 1 Step 3.1 * Open `step-3.css`. * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. @@ -313,7 +311,6 @@ Update our webpage so that it has the same structure and styling as the `step-3. ```
- * Level 1 Step 3.2 * Open `index.html`. * Look for the div with a class of `content`. It is inside the `content-left` div. Once you've found it insert a p tag inside the div and add some text inside. @@ -330,9 +327,6 @@ Update our webpage so that it has the same structure and styling as the `step-3. ```
- - - * Level 1 Step 3.3 * Open `step-3.css` * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. @@ -351,8 +345,6 @@ Update our webpage so that it has the same structure and styling as the `step-3. ```
- - * Level 1 Step 3.4 * Open `step-3.css`. * Give the element with a class of `content- container` a width of 80%. Like this `width: 80%`. @@ -370,7 +362,6 @@ Update our webpage so that it has the same structure and styling as the `step-3. ```
- * Wow! That looks pretty good. Congratulations you have finished level-1! ### Solution From 63b06ee8289a62c764e6df03ad02dea720cb67e1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:00:38 -0700 Subject: [PATCH 25/43] changes --- README.md | 74 +++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 76eff42d..7b4285cb 100644 --- a/README.md +++ b/README.md @@ -53,60 +53,60 @@ In this step, we will position the header at the top of the page. In this step, we will try to move box named content left to the left side of the page. * Open `step-1.css`. * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. - *
+ *
- Solution to Step 1.2 + Solution to Step 1.2 - ```css - .content-left{ - width: 33.3%; - - height: 100px; - background: #565555; - float: left; - padding-top: 35px; - } - ``` + ```css + .content-left{ + width: 33.3%; + + height: 100px; + background: #565555; + float: left; + padding-top: 35px; + } + ``` -
+
* Level 1 Step 1.3 In this step, we are going to position the box called content-mid to the left side of the page. * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. - *
+ *
- Solution to Step 1.3 + Solution to Step 1.3 - ```css - .content-mid { - width: 66.3%; - - height: 100px; - background: #B0B0B0; - float: left; - } - ``` + ```css + .content-mid { + width: 66.3%; + + height: 100px; + background: #B0B0B0; + float: left; + } + ``` -
+
* Level 1 Step 1.4 In this step, we will position the footer at the bottom of the page. * Open `step-1.css`. * Give `.footer` a css style of `position: absolute` and `bottom: 0`. - *
+ *
- Solution to Step 1.4 + Solution to Step 1.4 - ```css - .footer { - width: 100%; - height: 100px; - background: #3A3A3A; - position: absolute; - bottom: 0; - } - ``` + ```css + .footer { + width: 100%; + height: 100px; + background: #3A3A3A; + position: absolute; + bottom: 0; + } + ``` -
+
* Level 1 Step 1.5 * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. From fc0765b4926540bed5e98abb771cf80b4562994a Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:03:23 -0700 Subject: [PATCH 26/43] changes made --- README.md | 180 ++++++++++++++++++++++++++---------------------------- 1 file changed, 88 insertions(+), 92 deletions(-) diff --git a/README.md b/README.md index 7b4285cb..cc1389e7 100644 --- a/README.md +++ b/README.md @@ -163,87 +163,83 @@ In this step, we will create a webpage that has the same structure and styling a * Give the `.profile-image-container` a height and a width so you can see it on the webpage. * Give the `.profile-image-container` a margin of auto. * Now that the div with the `.profile-image-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. - *
+ *
- Solution to Step 2.1 + Solution to Step 2.1 - ```css - .profile-image-container { - width: 80%; - height: 180px; - margin: auto; - background: #96F0F2; - } - ``` + ```css + .profile-image-container { + width: 80%; + height: 180px; + margin: auto; + background: #96F0F2; + } + ``` -
+
* Level 1 Step 2.2 * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. * Now that the div with the `.profile-links-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. - *
- - Solution to Step 2.2 - - ```css - .profile-links-container { - width: 80%; - height: 300px; - margin: 20px auto; - background: #12F3F7; - } - ``` + *
-
+ Solution to Step 2.2 + ```css + .profile-links-container { + width: 80%; + height: 300px; + margin: 20px auto; + background: #12F3F7; + } + ``` +
* Level 1 Step 2.3 * Open `step-2.css`. * Give the div with a class of `.logo-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets make it float left by using `float: left`. * Now the element is too close to the top-left corner. So lets give it a `margin-top` and a `margin-left`. Like this `margin-top: 20px` and `margin-left: 10px`. * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. - *
- - Solution to Step 2.3 - - ```css - .logo-container { - width: 26%; - height: 60px; - float: left; - margin-left: 30px; - margin-top: 20px; - background: #4F4949; - } - ``` + *
-
+ Solution to Step 2.3 + ```css + .logo-container { + width: 26%; + height: 60px; + float: left; + margin-left: 30px; + margin-top: 20px; + background: #4F4949; + } + ``` +
* Level 1 Step 2.4 * Open `step-2.css`. * Give the div with a class of `.menu-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the right like you see in `step-2.jpg`. So lets make it float right by using `float: right`. * Now the element is too close to the top-right corner. So lets give it a `margin-top` and a `margin-right`. Like this `margin-top: 20px` and `margin-right: 30px`. * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. - *
+ *
- Solution to Step 2.4 + Solution to Step 2.4 - ```css - .menu-container { - width: 60px; - height: 60px; - float: right; - margin-right: 10px; - margin-top: 20px; - background: #4F4949; - } - ``` + ```css + .menu-container { + width: 60px; + height: 60px; + float: right; + margin-right: 10px; + margin-top: 20px; + background: #4F4949; + } + ``` -
+
### Solution @@ -299,69 +295,69 @@ In this step, we will update our webpage so that it has the same structure and s * Open `step-3.css`. * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. * Now our element is showing on the webpage. Good Job! - *
+ *
- Solution to Step 3.1 + Solution to Step 3.1 - ```css - .content-mid-header { - background: #444; - height: 100px; - } - ``` + ```css + .content-mid-header { + background: #444; + height: 100px; + } + ``` -
+
* Level 1 Step 3.2 * Open `index.html`. * Look for the div with a class of `content`. It is inside the `content-left` div. Once you've found it insert a p tag inside the div and add some text inside. - *
+ *
- Solution to Step 3.2 + Solution to Step 3.2 - ```html -
-

Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam, Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam,

-
- ``` + ```html +
+

Sed ut perspiciatis unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam, Sed ut perspiciatis unde omnis iste natus error sit voluptatem + accusantium doloremque laudantium, totam rem aperiam,

+
+ ``` -
+
* Level 1 Step 3.3 * Open `step-3.css` * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. * We should also fix the way the text is aligned. For that lets add `text-align: center`. - * Lastly our div seems to look a little short. Giving it a height should fix that. Try this `height: 275px`. Looking alot better. Lets continue! - *
+ * Lastly our div seems to look a little short. Giving it a height should fix that. Try this `height: 275px`. Looking a lot better. Let's continue! + *
- Solution to Step 3.3 + Solution to Step 3.3 - ```css - .content { - padding: 50px; - text-align: center; - height: 275px; - } - ``` + ```css + .content { + padding: 50px; + text-align: center; + height: 275px; + } + ``` -
+
* Level 1 Step 3.4 * Open `step-3.css`. * Give the element with a class of `content- container` a width of 80%. Like this `width: 80%`. * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it some margin. Like this `margin: 40px auto`. - *
+ *
- Solution to Step 3.4 + Solution to Step 3.4 - ```css - .content-container { - background: #D8D8D8; - width: 80%; - margin: 40px auto; - } - ``` + ```css + .content-container { + background: #D8D8D8; + width: 80%; + margin: 40px auto; + } + ``` -
+
* Wow! That looks pretty good. Congratulations you have finished level-1! ### Solution From d773c4942588b8dabaff608842d0fee0bff2aa81 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:10:34 -0700 Subject: [PATCH 27/43] changes --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cc1389e7..132c9bae 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ In this step, we will position the footer at the bottom of the page.
- step-1.css + level-1/step-1/step-1.css ```css .header { @@ -245,7 +245,7 @@ In this step, we will create a webpage that has the same structure and styling a
- step-2.css + level-1/step-2/step-2.css ```css .logo-container { @@ -290,7 +290,7 @@ In this step, we will create a webpage that has the same structure and styling a In this step, we will update our webpage so that it has the same structure and styling as the `step-3.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions -* Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file and an p tag element in the `index.html` file. Ok, lets begin. +* Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file. We will also need to add a `

` tag element in the `index.html` file located in the level-1 folder. Ok, lets begin. * Level 1 Step 3.1 * Open `step-3.css`. * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. @@ -364,7 +364,7 @@ In this step, we will update our webpage so that it has the same structure and s
- step-1.css + level-1/step-3/step-3.css ```css .content-mid-header { From 32c078ec55bcd24a27356b3218ea1cb99284f867 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:12:20 -0700 Subject: [PATCH 28/43] changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 132c9bae..88a56b99 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ In this step, we will create a webpage that has the same structure and styling a * Open the `level-1` folder and take a look inside. We have folders for steps one through three, a solution folder which is step-4, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. * Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. -* Level 1 Step 1.1 +* Level 1 Step 1.1
In this step, we will position the header at the top of the page. * Open `step-1.css`. * We need to place the header on the top of the page. From de964bd93e4cc9e2b391d98c1f82f742c43acb04 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:25:55 -0700 Subject: [PATCH 29/43] changes --- README.md | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 88a56b99..16b1e789 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ In this step, we will position the header at the top of the page. * Open `step-1.css`. * We need to place the header on the top of the page. * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. -* Level 1 Step 1.2 +* Level 1 Step 1.2
In this step, we will try to move box named content left to the left side of the page. * Open `step-1.css`. * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. @@ -69,7 +69,7 @@ In this step, we will try to move box named content left to the left side of the ```
-* Level 1 Step 1.3 +* Level 1 Step 1.3
In this step, we are going to position the box called content-mid to the left side of the page. * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. @@ -88,7 +88,7 @@ In this step, we are going to position the box called content-mid to the left si ```
-* Level 1 Step 1.4 +* Level 1 Step 1.4
In this step, we will position the footer at the bottom of the page. * Open `step-1.css`. * Give `.footer` a css style of `position: absolute` and `bottom: 0`. @@ -158,7 +158,8 @@ In this step, we will create a webpage that has the same structure and styling a ### Instructions * Now open the `step-2` folder and notice that there two items inside. There is a css file named `step-2.css` and an image named `step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Ok, lets start styling. -* Level 1 Step 2.1 +* Level 1 Step 2.1
+In this step, we will add the first box in the content-left container. * Open `step-2.css`. * Give the `.profile-image-container` a height and a width so you can see it on the webpage. * Give the `.profile-image-container` a margin of auto. @@ -177,7 +178,8 @@ In this step, we will create a webpage that has the same structure and styling a ```
-* Level 1 Step 2.2 +* Level 1 Step 2.2
+In this step, we will add the second box in the content-left container. * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. @@ -196,7 +198,8 @@ In this step, we will create a webpage that has the same structure and styling a ```
-* Level 1 Step 2.3 +* Level 1 Step 2.3
+In this step, we will add the rectangle in the header and position in correctly to the left side of the webpage. * Open `step-2.css`. * Give the div with a class of `.logo-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets make it float left by using `float: left`. @@ -218,7 +221,8 @@ In this step, we will create a webpage that has the same structure and styling a ```
-* Level 1 Step 2.4 +* Level 1 Step 2.4
+In this step, we will add the square in the header and position in correctly to the right side of the webpage. * Open `step-2.css`. * Give the div with a class of `.menu-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the right like you see in `step-2.jpg`. So lets make it float right by using `float: right`. @@ -291,7 +295,8 @@ In this step, we will update our webpage so that it has the same structure and s ### Instructions * Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file. We will also need to add a `

` tag element in the `index.html` file located in the level-1 folder. Ok, lets begin. -* Level 1 Step 3.1 +* Level 1 Step 3.1
+In this step we will start making the content in the `.mid-content` div by adding a header to it. * Open `step-3.css`. * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. * Now our element is showing on the webpage. Good Job! @@ -307,9 +312,10 @@ In this step, we will update our webpage so that it has the same structure and s ```
-* Level 1 Step 3.2 +* Level 1 Step 3.2
+In this step we will add some text inside of our `.content-left` div. * Open `index.html`. - * Look for the div with a class of `content`. It is inside the `content-left` div. Once you've found it insert a p tag inside the div and add some text inside. + * Look for the div with a class of `.content`. It is inside the `.content-left` div. Once you've found it insert a p tag inside the div and add some text inside. *
Solution to Step 3.2 @@ -323,7 +329,8 @@ In this step, we will update our webpage so that it has the same structure and s ```
-* Level 1 Step 3.3 +* Level 1 Step 3.3
+In this step, we will fix the alignment and positioning of the text we added in the previous step. * Open `step-3.css` * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. * We should also fix the way the text is aligned. For that lets add `text-align: center`. @@ -341,9 +348,10 @@ In this step, we will update our webpage so that it has the same structure and s ```
-* Level 1 Step 3.4 +* Level 1 Step 3.4
+In this step, we will changing the size of the container that is housing the content we added in the previous two steps. * Open `step-3.css`. - * Give the element with a class of `content- container` a width of 80%. Like this `width: 80%`. + * Give the element with a class of `content-container` a width of 80%. Like this `width: 80%`. * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it some margin. Like this `margin: 40px auto`. *
From 192e72ff077c5a087711fee8d77204e0ae7149eb Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 11:29:34 -0700 Subject: [PATCH 30/43] changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16b1e789..000faef8 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ In this step, we will position the header at the top of the page. * We need to place the header on the top of the page. * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. * Level 1 Step 1.2
-In this step, we will try to move box named content left to the left side of the page. +In this step, we will try to move box with a class of `content-left` to the left side of the page. * Open `step-1.css`. * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. *
@@ -70,7 +70,7 @@ In this step, we will try to move box named content left to the left side of the
* Level 1 Step 1.3
-In this step, we are going to position the box called content-mid to the left side of the page. +In this step, we are going to position the box with a class of `content-mid` to line up directly to the right of `.content-left`. * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. *
From e4196ddb06f1f78df71e9313f0a169b33f0b2f0b Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 12:34:59 -0700 Subject: [PATCH 31/43] changes --- README.md | 66 ++++++++++++++++++++- level-2/step-1/step-1.css | 6 +- level-2/step-3-possible-solution/step-1.css | 4 +- 3 files changed, 69 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 000faef8..724ed463 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ In this project you will be re-creating multiple html templates using the HTML a ### Summary -In this step, we will create a webpage that has the same structure and styling as the `step-1.jpg` image. We will accomplish this by adding some css styles to our webpage. +In this step, we will create a webpage that has the same structure and styling as the `level-1/step-1/step-1.jpg` image. We will accomplish this by adding some css styles to our webpage. ### Instructions @@ -153,7 +153,7 @@ In this step, we will position the footer at the bottom of the page. ### Summary -In this step, we will create a webpage that has the same structure and styling as the `step-2.jpg` image. We will accomplish this by adding more css styles to our webpage. +In this step, we will create a webpage that has the same structure and styling as the `level-1/step-2/step-2.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions @@ -291,7 +291,7 @@ In this step, we will add the square in the header and position in correctly to ### Summary -In this step, we will update our webpage so that it has the same structure and styling as the `step-3.jpg` image. We will accomplish this by adding more css styles to our webpage. +In this step, we will update our webpage so that it has the same structure and styling as the `level-1/step-3/step-3.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions * Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file. We will also need to add a `

` tag element in the `index.html` file located in the level-1 folder. Ok, lets begin. @@ -395,6 +395,66 @@ In this step, we will changing the size of the container that is housing the con
+## Level 2 Step 1 + +### Summary + +In this step, we will also be re-creating an image that will be provided to you. We will accomplish this by adding some css styles to our webpage. Good luck! + +### Instructions + +* Open the `level-2` folder and take a look inside. We have folders for two steps, a solution folder which is name `step-3-possible-solution`, and an `index.html` file. You will be using the same `index.html` file for both steps in this level. +* Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `level-2-step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. +* Level 2 Step 1.1
+In this step, we will be giving the div with a class of `.main-top-section` a position property that will allow its future child elements to change their position according to it. + * Open `step-1.css`. + * Give `.main-top-section` a position property of relative. Like this `position: relative`. + * The reason we do this is that future children elements that will use a position of absolute will refer to the first parent with a set position. So we set a position on `.main-top-section` to have it be the parent being referred to. + *
+ + Solution to Step 1.1 + + ```css + .main-top-section { + width: 100%; + height: 375px; + background: #F7F1E7; + position: relative; + } + ``` + +
+* Level 2 Step 1.2
+In this step, we will be positioning the small menu box in the left hand side of the `level-2-step-1.jpg` image. + * Let's start by giving `.menu` a display of inline-block. This will make it display side-by-side. + * Next lets give `.menu` a position of absolute. Like this `positon: absolute`. This will give you the option to position the `.menu` element according to the first ancestor that has a position. That ancestor will be the `.main-top-section` because we gave it a position of relative in the previous step. + * Now we have the ability to give the `.menu` div a top, right, bottom, and left css property. + * Lets give `.menu` a left position of 10px and a top position of 10px. Like this `left: 10x` and `top: 10px`. + * Good! Let's keep going! + *
+ + Solution to Step 1.2 + + ```css + .menu { + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + left: 10px; + top: 10px; + background: #536A63; + } + ``` + +
+ + + + + + + diff --git a/level-2/step-1/step-1.css b/level-2/step-1/step-1.css index bb1851f8..259077c9 100755 --- a/level-2/step-1/step-1.css +++ b/level-2/step-1/step-1.css @@ -24,6 +24,10 @@ width: 100px; height: 40px; background: #536A63; + /*display: inline-block; + position: absolute; + left: 10px; + top: 10px;*/ } .logo { @@ -51,4 +55,4 @@ background: #536A63; -} \ No newline at end of file +} diff --git a/level-2/step-3-possible-solution/step-1.css b/level-2/step-3-possible-solution/step-1.css index 4df0a29e..b253cada 100755 --- a/level-2/step-3-possible-solution/step-1.css +++ b/level-2/step-3-possible-solution/step-1.css @@ -5,7 +5,6 @@ height: 375px; background: #F7F1E7; position: relative; - } @@ -17,7 +16,7 @@ } /* Step-1.2 You need to get all of these elements to line up side by side. What display property would do this for you? */ -/* Step-1.2 You will also need t add a position property to the logo and sign in the containers */ +/* Step-1.2 You will also need to add a position property to the logo and sign in the containers */ .menu { width: 100px; @@ -60,4 +59,3 @@ background: #536A63; } - From b117e3211704bfa531cba760ad16b581e9cbd48d Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 13:58:19 -0700 Subject: [PATCH 32/43] changes --- README.md | 144 +++++++++++++++++++++++++++++++++----- level-2/step-1/step-1.css | 15 ++-- 2 files changed, 135 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 724ed463..7f800f17 100644 --- a/README.md +++ b/README.md @@ -426,28 +426,136 @@ In this step, we will be giving the div with a class of `.main-top-section` a po
* Level 2 Step 1.2
In this step, we will be positioning the small menu box in the left hand side of the `level-2-step-1.jpg` image. - * Let's start by giving `.menu` a display of inline-block. This will make it display side-by-side. - * Next lets give `.menu` a position of absolute. Like this `positon: absolute`. This will give you the option to position the `.menu` element according to the first ancestor that has a position. That ancestor will be the `.main-top-section` because we gave it a position of relative in the previous step. + * Open `step-1.css`. + * Let's start by giving `.menu` a display of inline-block. Like this `display: inline-block`. This will make it display side-by-side. + * Next lets give `.menu` a position of absolute. Like this `position: absolute`. This will give you the option to position the `.menu` element according to the first ancestor that has a position. That ancestor will be the `.main-top-section` because we gave it a position of relative in the previous step. * Now we have the ability to give the `.menu` div a top, right, bottom, and left css property. * Lets give `.menu` a left position of 10px and a top position of 10px. Like this `left: 10x` and `top: 10px`. - * Good! Let's keep going! + * Now the `.menu` element is in the correct position. But the other two elements are stacked on top. Let's fix that! + * Let's give `.logo` a display of inline-block. Like this `display: inline-block`. + * Let's also give the element with a class of `.sign-in` a display of inline-block as well. + * Now let's give `.sign-in` a position of absolute, and a top and right property to position it correctly. Like this `position: absolute`, `top: 10px`, and `right: 10px`. + * That looks better! *
- Solution to Step 1.2 - - ```css - .menu { - width: 100px; - height: 40px; - display: inline-block; - position: absolute; - left: 10px; - top: 10px; - background: #536A63; - } - ``` - -
+ Solution to Step 1.2 + + ```css + .menu { + width: 100px; + height: 40px; + background: #536A63; + display: inline-block; + position: absolute; + left: 10px; + top: 10px; + } + + .logo { + width: 300px; + height: 40px; + margin-top: 10px; + background: #536A63; + display: inline-block; + } + + .sign-in { + width: 100px; + height: 40px; + background: #536A63; + display: inline-block; + position: absolute; + right: 10px; + top: 10px; + } + ``` + + +* Level 2 Step 1.3
+In this step, we will position the last green element overhanging below its parent element. + * Open `step-1.css`. + * Now how are we going to move the element towards the bottom in reference to its parent? Position absolute of course! So lets give the element with a class name of `.bottom-container` a position of absolute. Like this `position: absolute`. + * Lastly let's give it a bottom and left properties. The bottom property will need to be a negative pixel value so that it is overhangs. Like this `bottom: -30px` and `left: 22%`; + * Looking good! + *
+ + Solution to Step 1.2 + + ```css + .bottom-container { + width: 60%; + height: 60px; + position: absolute; + bottom: -30px; + left: 22%; + background: #536A63; + } + ``` + +
+ +### Solution + +
+ + Solution to Step 1.2 + +```css +.main-top-section { + width: 100%; + height: 375px; + background: #F7F1E7; + position: relative; +} + +.top-header { + width: 100%; + height: 70px; + text-align: center; + background: #D8D8D8; +} + +.menu { + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + left: 10px; + top: 10px; + background: #536A63; +} + +.logo { + width: 300px; + height: 40px; + display: inline-block; + margin-top: 10px; + background: #536A63; +} + +.sign-in { + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + right: 10px; + top: 10px; + background: #536A63; +} + +.bottom-container { + width: 60%; + height: 60px; + position: absolute; + bottom: -30px; + left: 22%; + background: #536A63; +} +``` + +
+ + diff --git a/level-2/step-1/step-1.css b/level-2/step-1/step-1.css index 259077c9..10fa28d1 100755 --- a/level-2/step-1/step-1.css +++ b/level-2/step-1/step-1.css @@ -24,10 +24,10 @@ width: 100px; height: 40px; background: #536A63; - /*display: inline-block; + display: inline-block; position: absolute; left: 10px; - top: 10px;*/ + top: 10px; } .logo { @@ -35,15 +35,17 @@ height: 40px; margin-top: 10px; background: #536A63; - - + display: inline-block; } .sign-in { width: 100px; height: 40px; background: #536A63; - + display: inline-block; + position: absolute; + right: 10px; + top: 10px; } /* Step-1.3 Make this container overhang off its parent container. */ @@ -51,8 +53,9 @@ .bottom-container { width: 60%; height: 60px; + position: absolute; + bottom: -30px; left: 22%; background: #536A63; - } From cba985714c4fbff7933e963db671bee078777371 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 14:59:05 -0700 Subject: [PATCH 33/43] changes --- README.md | 132 +++++++++++++++++++- level-2/step-2/step-2.css | 25 ++-- level-2/step-3-possible-solution/step-2.css | 2 - 3 files changed, 141 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 7f800f17..490bb15d 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,7 @@ In this step, we will add the square in the header and position in correctly to In this step, we will update our webpage so that it has the same structure and styling as the `level-1/step-3/step-3.jpg` image. We will accomplish this by adding more css styles to our webpage. ### Instructions + * Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file. We will also need to add a `

` tag element in the `index.html` file located in the level-1 folder. Ok, lets begin. * Level 1 Step 3.1
In this step we will start making the content in the `.mid-content` div by adding a header to it. @@ -479,7 +480,7 @@ In this step, we will position the last green element overhanging below its pare * Looking good! *
- Solution to Step 1.2 + Solution to Step 1.3 ```css .bottom-container { @@ -498,7 +499,7 @@ In this step, we will position the last green element overhanging below its pare
- Solution to Step 1.2 + level-2/step-1/level-1-step-3.css ```css .main-top-section { @@ -555,6 +556,133 @@ In this step, we will position the last green element overhanging below its pare
+## Level 2 Step 2 + +### Summary + +In this step, we will also be re-creating an image that will be provided to you. We will accomplish this by adding some css styles to our webpage. Good luck! + +### Instructions + +* Now open the `step-2` folder in level-2 and notice that there two items inside. There is a css file named `step-2.css` and an image named `level-2-step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Let's go! +* Level 2 Step 2.1
+In this step, we will be using a css property to align items in the center of the webpage. + * Open `step-2.css`. + * Give the element with the class name of `main-bottom-section` a property of text-align with a value of center. Like this `text-align: center`. + *
+ + level-2/step-1/level-1-step-3.css + + ```css + .main-bottom-section { + margin-top: 65px; + text-align: center; + } + ``` + +
+* Level 2 Step 2.2
+In this step, we will be adding a width, height and display property to make the small square containers look like the `level-2-step-2.jpg` image. + * In the `level-2-step-2.jpg` image you can see there are three different types of boxes in the bottom container. The small square, the rectangle, and the big square. + * Lets give each of these their corresponding height and width. + * Open `step-2.css`. + * Starting with the small squares which have a class name of `.item`, lets give them a height and a width. Like this `height: 200px` and `width: 40%`. + * But our items are not lined up correctly. Lets give them a property so they display side-by-side. Like this `display: inline-block`. + * Looks perfect! + *
+ + level-2/step-1/level-1-step-3.css + + ```css + .item { + display: inline-block; + height: 200px; + width: 40%; + background: #DED6D3; + margin-bottom: 30px; + } + ``` + +
+* Level 2 Step 2.3
+In this step, we will be adding a width, height and a margin property to make the rectangle container look like the `level-2-step-2.jpg` image. + * Open `step-2.css`. + * Now lets focus on the rectangle element with a class of `.full-width-item`. Let's give this element a width and height. Like this `width: 80%` and `height: 200px`. + * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the two middle values as the left and right margins and the last value as the bottom-margin. + *
+ + level-2/step-1/level-1-step-3.css + + ```css + .full-width-item { + width: 80%; + height: 200px; + margin:0 auto 30px; + background: #DED6D3; + } + ``` + +
+* Level 2 Step 2.4
+In this step, we will add a height, width and a margin to make the big square look like the `level-2-step-2.jpg` image. + * Open `step-2.css`. + * On the element with a class name of `.large-item` let's give it a height and with property. Like this `height: 500px` and `width: 80%`. + * Again too close to the surrounding elements lets give it some margin. Like this `margin: 0, auto, 30px`. + * Nice! Congratulations you've finished level-2. + *
+ + level-2/step-1/level-1-step-3.css + + ```css + .large-item { + width: 80%; + height: 500px; + margin:0 auto 30px; + background: #DED6D3; + } + ``` + +
+ +### Solution + +
+ + level-2/step-1/level-1-step-3.css + +```css +.main-bottom-section { + margin-top: 65px; + text-align: center; + +} + +.item { + display: inline-block; + height: 200px; + width: 40%; + background: #DED6D3; + margin-bottom: 30px; +} + +.full-width-item { + width: 80%; + height: 200px; + margin:0 auto 30px; + background: #DED6D3; +} + +.large-item { + width: 80%; + height: 500px; + margin:0 auto 30px; + background: #DED6D3; +} +``` + +
+ + diff --git a/level-2/step-2/step-2.css b/level-2/step-2/step-2.css index 9f7ccb04..b5f97d69 100755 --- a/level-2/step-2/step-2.css +++ b/level-2/step-2/step-2.css @@ -2,15 +2,15 @@ /* Step-2.1 add a property that will align items in the center */ .main-bottom-section { margin-top: 65px; - /* alignment property */ + text-align: center; } /* Step-2.2 Add a width, height and display property to make these containers look like the design */ .item { - /*width*/ - /*height*/ - /*display*/ + height: 200px; + width: 40%; + display: inline-block; background: #DED6D3; margin-bottom: 30px; } @@ -18,21 +18,18 @@ /* Step-2.3 Add a width, height and margin property to make these containers look like the design. Remember margin: auto is helpful when trying to center a container*/ .full-width-item { - /*width*/ - /*height*/ - /*margin*/ - margin:0 auto 30px; - background: #DED6D3; + width: 80%; + height: 200px; + margin:0 auto 30px; + background: #DED6D3; } /* Step-2.4 Add a width, height and margin property to make these containers look like the design. Remember margin: auto is helpful when trying to center a container*/ .large-item { - /*width*/ - /*height*/ - /*margin*/ + width: 80%; + height: 500px; + margin:0 auto 30px; background: #DED6D3; } - - diff --git a/level-2/step-3-possible-solution/step-2.css b/level-2/step-3-possible-solution/step-2.css index e5d6f99d..b16830f9 100644 --- a/level-2/step-3-possible-solution/step-2.css +++ b/level-2/step-3-possible-solution/step-2.css @@ -32,5 +32,3 @@ margin:0 auto 30px; background: #DED6D3; } - - From 0b99ea47556befd0728047f9b9f76b4482b8939c Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 15:01:07 -0700 Subject: [PATCH 34/43] changes --- README.md | 78 +++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 490bb15d..31e5ad20 100644 --- a/README.md +++ b/README.md @@ -571,16 +571,16 @@ In this step, we will be using a css property to align items in the center of th * Give the element with the class name of `main-bottom-section` a property of text-align with a value of center. Like this `text-align: center`. *
- level-2/step-1/level-1-step-3.css + level-2/step-1/level-1-step-3.css - ```css - .main-bottom-section { - margin-top: 65px; - text-align: center; - } - ``` + ```css + .main-bottom-section { + margin-top: 65px; + text-align: center; + } + ``` -
+
* Level 2 Step 2.2
In this step, we will be adding a width, height and display property to make the small square containers look like the `level-2-step-2.jpg` image. * In the `level-2-step-2.jpg` image you can see there are three different types of boxes in the bottom container. The small square, the rectangle, and the big square. @@ -591,19 +591,19 @@ In this step, we will be adding a width, height and display property to make the * Looks perfect! *
- level-2/step-1/level-1-step-3.css + level-2/step-1/level-1-step-3.css - ```css - .item { - display: inline-block; - height: 200px; - width: 40%; - background: #DED6D3; - margin-bottom: 30px; - } - ``` + ```css + .item { + display: inline-block; + height: 200px; + width: 40%; + background: #DED6D3; + margin-bottom: 30px; + } + ``` -
+ * Level 2 Step 2.3
In this step, we will be adding a width, height and a margin property to make the rectangle container look like the `level-2-step-2.jpg` image. * Open `step-2.css`. @@ -611,18 +611,18 @@ In this step, we will be adding a width, height and a margin property to make th * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the two middle values as the left and right margins and the last value as the bottom-margin. *
- level-2/step-1/level-1-step-3.css + level-2/step-1/level-1-step-3.css - ```css - .full-width-item { - width: 80%; - height: 200px; - margin:0 auto 30px; - background: #DED6D3; - } - ``` + ```css + .full-width-item { + width: 80%; + height: 200px; + margin:0 auto 30px; + background: #DED6D3; + } + ``` -
+ * Level 2 Step 2.4
In this step, we will add a height, width and a margin to make the big square look like the `level-2-step-2.jpg` image. * Open `step-2.css`. @@ -631,18 +631,18 @@ In this step, we will add a height, width and a margin to make the big square lo * Nice! Congratulations you've finished level-2. *
- level-2/step-1/level-1-step-3.css + level-2/step-1/level-1-step-3.css - ```css - .large-item { - width: 80%; - height: 500px; - margin:0 auto 30px; - background: #DED6D3; - } - ``` + ```css + .large-item { + width: 80%; + height: 500px; + margin:0 auto 30px; + background: #DED6D3; + } + ``` -
+ ### Solution From 691a4faf04997946411d313a158ee8be8d16c8c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 16:46:29 -0700 Subject: [PATCH 35/43] changes --- README.md | 133 +++++++++++++++++++++++++++++++++++++- level-3/index.html | 4 +- level-3/step-1/step-1.css | 5 +- 3 files changed, 134 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 31e5ad20..c462de44 100644 --- a/README.md +++ b/README.md @@ -611,7 +611,7 @@ In this step, we will be adding a width, height and a margin property to make th * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the two middle values as the left and right margins and the last value as the bottom-margin. *
- level-2/step-1/level-1-step-3.css + level-2/step-2/level-2-step-2.css ```css .full-width-item { @@ -631,7 +631,7 @@ In this step, we will add a height, width and a margin to make the big square lo * Nice! Congratulations you've finished level-2. *
- level-2/step-1/level-1-step-3.css + level-2/step-2/level-2-step-2.css ```css .large-item { @@ -648,7 +648,7 @@ In this step, we will add a height, width and a margin to make the big square lo
- level-2/step-1/level-1-step-3.css + level-2/step-2/level-2-step-2.css ```css .main-bottom-section { @@ -682,6 +682,133 @@ In this step, we will add a height, width and a margin to make the big square lo
+## Level 3 Step 1 + +### Summary + +In this step, we will be adding the images and logos to the layout designs that we made in the previous two levels. We'll be combining them to create a one big design. Have fun! + +### Instructions + +* Open the `level-3` folder and take a look inside. We have an `img` folder, folders for three steps, a solution folder which is named `step-4-possible-solution`, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. +* Check out what's inside the `img` folder. You will be using these images and icons in your webpage. +* Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `level-3-step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. +* Level 3 Step 1.1
+In this step, we will be adding a background image to the `main-top-section`. + * Open `step-1.css`. + * Give the element with a class of `.main-top-section` a background property with a value pointing to the `Background.png` image inside the `img` folder. Like this `background: url("../img/Background.png") no-repeat`. First you set the background to `url()`. Then you used `..` to go up one directory, then `/img` to enter the `img` folder, then `/Background.png` to select the background image file. Then adding `no-repeat` to the back of the url will make the image not repeat. By default the image will repeat to cover the whole page. + * Next let's give the background image a property of `background-size` with a value of `cover`. Like this `background-size: cover`. + * Looks great! On to the next step. + *
+ + level-2/step-2/level-2-step-2.css + + ```css + .main-top-section { + width: 100%; + height: 530px; + position: relative; + background: url("../img/Background.png") no-repeat; + background-size: cover; + } + ``` + +
+* Level 3 Step 1.2
+In this step, we will be adding the src path on each of the images in the top half of the webpage. + * Open `index.html`. + * Find the `` tag with a class of `menu-icon`. + * Give it a src path that will point to `MENU.png` in the `img/icons` folder. + *
+ + Correct src path + + ```html + menu icon + ``` + +
+ * Find the `` tag with a class of `logo-icon`. + * Give it a src path that will point to `dev-shop.png` in the `img/icons` folder. + *
+ + Correct src path + + ```html + logo icon + ``` + +
+ * Find the `` tag with a class of `sign-in-icon`. + * Give it a src path that will point to `Sign_In.png` in the `img/icons` folder. + *
+ + Correct src path + + ```html + + ``` + +
+ * Find the `` tag with a class of `shop-icon`. + * Give it a src path that will point to `Shop_Deals.png` in the `img/icons` folder. + *
+ + Correct src path + + ```html + shop icon + ``` + +
+ +## Level 3 Step 1 + +### Summary + +In this step, we will continue to add the images and logos to the layout designs that we made in the previous two levels. We'll be combining them to create a one big design. Good luck! + +### Instructions + +* Level 3 Step 2.1
+In this step, we will be adding the src path on each of the images in the bottom half of the webpage. + * Open `index.html`. + * Find the `` tag with a class of `item-image` that is inside the div with both classes `item tops`. + * Give it a src path that will point to `Tops.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ * Find the `` tag with a class of `item-image` that is inside the div with both classes `item bottoms`. + * Give it a src path that will point to `bottoms.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ * Find the `` tag with a class of `item-image` that is inside the div with both classes `full-width-item accessories`. + * Give it a src path that will point to `accessories.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ + +### Solution diff --git a/level-3/index.html b/level-3/index.html index e55d6f98..f56de80e 100755 --- a/level-3/index.html +++ b/level-3/index.html @@ -26,7 +26,7 @@
-## Level 3 Step 1 +### Solution + +
+ + level-3/index.html + +```html +
+
+ + + + +
+ +
+ + shop icon +
+
+``` + +
+ +## Level 3 Step 2 ### Summary @@ -806,10 +839,352 @@ In this step, we will be adding the src path on each of the images in the bottom ```
+ * Find the `` tag with a class of `item-image` that is inside the div with a class of `large-item`. + * Give it a src path that will point to `collection.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ * Find the `` tag with a class of `item-image` that is inside the div with both classes `item kicks`. + * Give it a src path that will point to `kicks.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ * Find the `` tag with a class of `item-image` that is inside the div with both classes `item hats`. C + * Give it a src path that will point to `hats.png` in the `img` folder. + *
+ + Correct src path + + ```html + tops + ``` + +
+ * ### Solution +
+ + level-3/index.html + +```html +
+
+ + + + +
+ +
+ + shop icon +
+
+``` + +
+ +## Level 3 Step 3 + +## Summary + +In this step, we will be giving our page a little taste of responsiveness. We will be making our images stop growing at a certain screen width. Lets begin! + +## Instructions + +* Open `index.html`. +* Inside the `` uncomment the link to `step-3.css`, and comment out the links to `step-1.css` and `step-2.css`. +* Now open the `step-3` folder. There is a css file named `step-3.css`. In this css file is where we will try to add media queries to make our webpage responsive. +* Scroll to the bottom of the page and look at the syntax for creating a media query. There are some missing pieces but we'll fill them in step by step. +* Inside the parenthesis `@media( inside here )` is where we will specify the mix or max width the query will start. We will also include the pixel at which the query will start. +Like this `@media(min-width: 900px)`. This means that starting at a minimum width of 900px the following css styles will be activated. +* Now inside there are three css declaration blocks `.item`, `.full-width-item`, and `.large-item`. Inside each of these set a width property with a pixel value. +* After completing the previous step go to your webpage in the browser and make the browser window width as small as you can and then increase it little by little. The images should stop growing at a width of over 900px. +* Great Job! You just made an amazing looking webpage. Congratulations you have finished this project. + *
+ + level-3/step-3/step-3.css + + ```css + @media(min-width: 900px) { + .item { + width:400px; + } + .full-width-item { + width: 800px; + } + .large-item { + width: 800px; + } + } + ``` + +
+ +### Solution + +
+ + level-3/index.html + +```html + + + + + + level-3 + + + + + + + + + + + + + + + + +
+ +
+
+ + + + +
+ +
+ + shop icon +
+
+ +
+ +
+ + + tops + +
+
+ + + tops + +
+ +
+ + + tops + +
+ +
+ + + tops + +
+ +
+ + + tops + +
+
+ + + tops + +
+ +
+ +
+ + +``` + +
+ +
+ + level-3/step-3/step-3.css + +```css + +.main-top-section { + width: 100%; + height: 530px; + position: relative; + background: url("../img/Background.png") no-repeat; + background-size: cover; + +} + + +.top-header { + width: 100%; + padding-top: 10px; + height: 70px; + text-align: center; + +} + + +.menu { + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + left: 10px; + top: 20px; + +} + +.menu-icon { + width: 60%; + +} + +.logo { + width: 300px; + height: 40px; + display: inline-block; + margin-top: 10px; + +} + +.logo-icon { + width: 75%; +} + +.sign-in { + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + right: 10px; + top: 30px; + +} + +.sign-in-icon { + width: 60%; +} + + +.bottom-container { + width: 100%; + height: 60px; + position: absolute; + text-align: center; + bottom: -30px; + +} + + +.shop-icon { + width: 350px; +} + + +.main-bottom-section { + margin-top: 65px; + text-align: center; + +} + +.item { + display: inline-block; + width: 40%; + background: #D6CFC9; + margin-bottom: 20px; + padding-top: 20px; + cursor: pointer; +} + +.item-image { + width: 100%; + display: block; +} + +.full-width-item { + width: 80%; + margin:0 auto 20px; + cursor: pointer; + +} + + +.large-item { + width: 80%; + margin:0 auto 20px; + cursor: pointer; + +} + +@media(min-width: 900px) { + .item { + width:400px; + } + .full-width-item { + width: 800px; + } + .large-item { + width: 800px; + } +} +``` + +
+ + + + diff --git a/level-3/index.html b/level-3/index.html index f56de80e..1147eddc 100755 --- a/level-3/index.html +++ b/level-3/index.html @@ -8,39 +8,40 @@ - + - + - + +
- +
- shop icon + shop icon
@@ -49,40 +50,40 @@
- tops + tops
- tops + tops
- tops + tops
- tops + tops
- tops + tops
- tops + tops
diff --git a/level-3/step-3/step-3.css b/level-3/step-3/step-3.css index c064b5f2..0bf201f6 100644 --- a/level-3/step-3/step-3.css +++ b/level-3/step-3/step-3.css @@ -1,4 +1,3 @@ - .main-top-section { width: 100%; height: 530px; @@ -110,25 +109,14 @@ } -/* Set a min-width of 900px inside this media query */ - -@media(/* ADD SOME CODE HERE*/) { - - /* add a different width to these classes to make them look better on larger screens */ - +@media(min-width: 900px) { .item { - /*Add width*/ + width:400px; } - .full-width-item { - /*Add width*/ - + width: 800px; } - - .large-item { - /*Add width*/ - + width: 800px; } } - diff --git a/level-3/step-4-possible-solution/responsive.css b/level-3/step-4-possible-solution/responsive.css index 33422732..434cb2c7 100644 --- a/level-3/step-4-possible-solution/responsive.css +++ b/level-3/step-4-possible-solution/responsive.css @@ -116,15 +116,8 @@ } .full-width-item { width: 800px; - - } - - .large-item { width: 800px; - - } } - diff --git a/level-3/step-4-possible-solution/solution.html b/level-3/step-4-possible-solution/solution.html index bd08e4c5..61618cb4 100644 --- a/level-3/step-4-possible-solution/solution.html +++ b/level-3/step-4-possible-solution/solution.html @@ -90,4 +90,4 @@
- \ No newline at end of file + From f805a923e170d78f663bb4693ff04441a15064bb Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 27 Jun 2017 18:18:51 -0700 Subject: [PATCH 37/43] changes --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 666a6c4c..ad569f7e 100644 --- a/README.md +++ b/README.md @@ -872,8 +872,6 @@ In this step, we will be adding the src path on each of the images in the bottom ``` - * - ### Solution From 54ccdf2f12df16e6c5729f8f9d1af688f3a93cf4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 09:36:44 -0700 Subject: [PATCH 38/43] fixing --- README.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ad569f7e..4021908d 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,19 @@ In this step, we will create a webpage that has the same structure and styling a * Open the `level-1` folder and take a look inside. We have folders for steps one through three, a solution folder which is step-4, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. * Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. -* Level 1 Step 1.1
+ +#### Level 1 Step 1.1 + In this step, we will position the header at the top of the page. + * Open `step-1.css`. * We need to place the header on the top of the page. * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. -* Level 1 Step 1.2
+ +#### Level 1 Step 1.2 + In this step, we will try to move box with a class of `content-left` to the left side of the page. + * Open `step-1.css`. * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. *
@@ -1180,20 +1186,6 @@ Like this `@media(min-width: 900px)`. This means that starting at a minimum widt
- - - - - - - - - - - - - - ## Copyright © DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. From 34d40c8e88235fa77c1742dbdb439673ec65935e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 09:50:28 -0700 Subject: [PATCH 39/43] fixing --- README.md | 107 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 85 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 4021908d..d124e283 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,11 @@ In this step, we will try to move box with a class of `content-left` to the left ``` -* Level 1 Step 1.3
+ +#### Level 1 Step 1.3 + In this step, we are going to position the box with a class of `content-mid` to line up directly to the right of `.content-left`. + * Open `step-1.css`. * Give `.content-mid` a css style of `float: left`. *
@@ -94,8 +97,11 @@ In this step, we are going to position the box with a class of `content-mid` to ```
-* Level 1 Step 1.4
+ +#### Level 1 Step 1.4 + In this step, we will position the footer at the bottom of the page. + * Open `step-1.css`. * Give `.footer` a css style of `position: absolute` and `bottom: 0`. *
@@ -113,7 +119,9 @@ In this step, we will position the footer at the bottom of the page. ```
-* Level 1 Step 1.5 + +#### Level 1 Step 1.5 + * Now all we need to do is change the height and width on the divs so that your webpage looks as close as it can to the `step-1.jpg`. ### Solution @@ -164,8 +172,11 @@ In this step, we will create a webpage that has the same structure and styling a ### Instructions * Now open the `step-2` folder and notice that there two items inside. There is a css file named `step-2.css` and an image named `step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Ok, lets start styling. -* Level 1 Step 2.1
+ +#### Level 1 Step 2.1 + In this step, we will add the first box in the content-left container. + * Open `step-2.css`. * Give the `.profile-image-container` a height and a width so you can see it on the webpage. * Give the `.profile-image-container` a margin of auto. @@ -184,8 +195,11 @@ In this step, we will add the first box in the content-left container. ``` -* Level 1 Step 2.2
+ +#### Level 1 Step 2.2 + In this step, we will add the second box in the content-left container. + * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. @@ -204,8 +218,11 @@ In this step, we will add the second box in the content-left container. ``` -* Level 1 Step 2.3
+ +#### Level 1 Step 2.3 + In this step, we will add the rectangle in the header and position in correctly to the left side of the webpage. + * Open `step-2.css`. * Give the div with a class of `.logo-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets make it float left by using `float: left`. @@ -227,8 +244,11 @@ In this step, we will add the rectangle in the header and position in correctly ``` -* Level 1 Step 2.4
+ +#### Level 1 Step 2.4 + In this step, we will add the square in the header and position in correctly to the right side of the webpage. + * Open `step-2.css`. * Give the div with a class of `.menu-container` a height and a width so you can see the element on the webpage. * Now we need to move the element over to the right like you see in `step-2.jpg`. So lets make it float right by using `float: right`. @@ -302,8 +322,11 @@ In this step, we will update our webpage so that it has the same structure and s ### Instructions * Now open the `step-3` folder and notice that there two items inside. There is a css file named `step-3.css` and an image named `step-3.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-3.css` file. We will also need to add a `

` tag element in the `index.html` file located in the level-1 folder. Ok, lets begin. -* Level 1 Step 3.1
+ +#### Level 1 Step 3.1 + In this step we will start making the content in the `.mid-content` div by adding a header to it. + * Open `step-3.css`. * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. * Now our element is showing on the webpage. Good Job! @@ -319,10 +342,13 @@ In this step we will start making the content in the `.mid-content` div by addin ``` -* Level 1 Step 3.2
+ +#### Level 1 Step 3.2 + In this step we will add some text inside of our `.content-left` div. + * Open `index.html`. - * Look for the div with a class of `.content`. It is inside the `.content-left` div. Once you've found it insert a p tag inside the div and add some text inside. + * Look for the div with a class of `.content`. It is inside the `.content-left` div. Once you've found it insert a paragraph text inside the div. *
Solution to Step 3.2 @@ -336,8 +362,11 @@ In this step we will add some text inside of our `.content-left` div. ```
-* Level 1 Step 3.3
+ +#### Level 1 Step 3.3 + In this step, we will fix the alignment and positioning of the text we added in the previous step. + * Open `step-3.css` * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. * We should also fix the way the text is aligned. For that lets add `text-align: center`. @@ -355,8 +384,11 @@ In this step, we will fix the alignment and positioning of the text we added in ``` -* Level 1 Step 3.4
+ +# Level 1 Step 3.4 + In this step, we will changing the size of the container that is housing the content we added in the previous two steps. + * Open `step-3.css`. * Give the element with a class of `content-container` a width of 80%. Like this `width: 80%`. * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it some margin. Like this `margin: 40px auto`. @@ -412,8 +444,11 @@ In this step, we will also be re-creating an image that will be provided to you. * Open the `level-2` folder and take a look inside. We have folders for two steps, a solution folder which is name `step-3-possible-solution`, and an `index.html` file. You will be using the same `index.html` file for both steps in this level. * Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `level-2-step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. -* Level 2 Step 1.1
+ +#### Level 2 Step 1.1 + In this step, we will be giving the div with a class of `.main-top-section` a position property that will allow its future child elements to change their position according to it. + * Open `step-1.css`. * Give `.main-top-section` a position property of relative. Like this `position: relative`. * The reason we do this is that future children elements that will use a position of absolute will refer to the first parent with a set position. So we set a position on `.main-top-section` to have it be the parent being referred to. @@ -431,8 +466,11 @@ In this step, we will be giving the div with a class of `.main-top-section` a po ``` -* Level 2 Step 1.2
+ +#### Level 2 Step 1.2 + In this step, we will be positioning the small menu box in the left hand side of the `level-2-step-1.jpg` image. + * Open `step-1.css`. * Let's start by giving `.menu` a display of inline-block. Like this `display: inline-block`. This will make it display side-by-side. * Next lets give `.menu` a position of absolute. Like this `position: absolute`. This will give you the option to position the `.menu` element according to the first ancestor that has a position. That ancestor will be the `.main-top-section` because we gave it a position of relative in the previous step. @@ -478,8 +516,11 @@ In this step, we will be positioning the small menu box in the left hand side of ``` -* Level 2 Step 1.3
+ +#### Level 2 Step 1.3 + In this step, we will position the last green element overhanging below its parent element. + * Open `step-1.css`. * Now how are we going to move the element towards the bottom in reference to its parent? Position absolute of course! So lets give the element with a class name of `.bottom-container` a position of absolute. Like this `position: absolute`. * Lastly let's give it a bottom and left properties. The bottom property will need to be a negative pixel value so that it is overhangs. Like this `bottom: -30px` and `left: 22%`; @@ -571,8 +612,11 @@ In this step, we will also be re-creating an image that will be provided to you. ### Instructions * Now open the `step-2` folder in level-2 and notice that there two items inside. There is a css file named `step-2.css` and an image named `level-2-step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Let's go! -* Level 2 Step 2.1
+ +#### Level 2 Step 2.1 + In this step, we will be using a css property to align items in the center of the webpage. + * Open `step-2.css`. * Give the element with the class name of `main-bottom-section` a property of text-align with a value of center. Like this `text-align: center`. *
@@ -587,8 +631,11 @@ In this step, we will be using a css property to align items in the center of th ```
-* Level 2 Step 2.2
+ +#### Level 2 Step 2.2 + In this step, we will be adding a width, height and display property to make the small square containers look like the `level-2-step-2.jpg` image. + * In the `level-2-step-2.jpg` image you can see there are three different types of boxes in the bottom container. The small square, the rectangle, and the big square. * Lets give each of these their corresponding height and width. * Open `step-2.css`. @@ -610,8 +657,11 @@ In this step, we will be adding a width, height and display property to make the ``` -* Level 2 Step 2.3
+ +#### Level 2 Step 2.3 + In this step, we will be adding a width, height and a margin property to make the rectangle container look like the `level-2-step-2.jpg` image. + * Open `step-2.css`. * Now lets focus on the rectangle element with a class of `.full-width-item`. Let's give this element a width and height. Like this `width: 80%` and `height: 200px`. * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the two middle values as the left and right margins and the last value as the bottom-margin. @@ -629,8 +679,11 @@ In this step, we will be adding a width, height and a margin property to make th ``` -* Level 2 Step 2.4
+ +#### Level 2 Step 2.4 + In this step, we will add a height, width and a margin to make the big square look like the `level-2-step-2.jpg` image. + * Open `step-2.css`. * On the element with a class name of `.large-item` let's give it a height and with property. Like this `height: 500px` and `width: 80%`. * Again too close to the surrounding elements lets give it some margin. Like this `margin: 0, auto, 30px`. @@ -699,8 +752,11 @@ In this step, we will be adding the images and logos to the layout designs that * Open the `level-3` folder and take a look inside. We have an `img` folder, folders for three steps, a solution folder which is named `step-4-possible-solution`, and an `index.html` file. You will be using the same `index.html` file for all three steps in this level. * Check out what's inside the `img` folder. You will be using these images and icons in your webpage. * Now open the `step-1` folder and notice that there two items inside. There is a css file named `step-1.css` and an image named `level-3-step-1.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-1.css` file. Ok, lets start styling. -* Level 3 Step 1.1
+ +#### Level 3 Step 1.1 + In this step, we will be adding a background image to the `main-top-section`. + * Open `step-1.css`. * Give the element with a class of `.main-top-section` a background property with a value pointing to the `Background.png` image inside the `img` folder. Like this `background: url("../img/Background.png") no-repeat`. First you set the background to `url()`. Then you used `..` to go up one directory, then `/img` to enter the `img` folder, then `/Background.png` to select the background image file. Then adding `no-repeat` to the back of the url will make the image not repeat. By default the image will repeat to cover the whole page. * Next let's give the background image a property of `background-size` with a value of `cover`. Like this `background-size: cover`. @@ -720,8 +776,11 @@ In this step, we will be adding a background image to the `main-top-section`. ``` -* Level 3 Step 1.2
+ +#### Level 3 Step 1.2 + In this step, we will be adding the src path on each of the images in the top half of the webpage. + * Open `index.html`. * Find the `` tag with a class of `menu-icon`. * Give it a src path that will point to `MENU.png` in the `img/icons` folder. @@ -809,8 +868,12 @@ In this step, we will continue to add the images and logos to the layout designs ### Instructions -* Level 3 Step 2.1
+* Now open the `step-2` folder in level-3 and notice that there two items inside. There is a css file named `step-2.css` and an image named `level-3-step-2.jpg`. The image in this folder is what you will try to re-create. We will accomplish this by adding some styling in the `step-2.css` file. Let's go! + +#### Level 3 Step 2.1 + In this step, we will be adding the src path on each of the images in the bottom half of the webpage. + * Open `index.html`. * Find the `` tag with a class of `item-image` that is inside the div with both classes `item tops`. * Give it a src path that will point to `Tops.png` in the `img` folder. From 28a607ad617af06faeda6c36565c3da86d57d2b1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 10:51:18 -0700 Subject: [PATCH 40/43] fixing --- README.md | 70 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index d124e283..4f627a09 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,6 @@ In this step, we will create a webpage that has the same structure and styling a In this step, we will position the header at the top of the page. * Open `step-1.css`. - * We need to place the header on the top of the page. * The header automatically gets put at the top of the page because it is the first element on the HMTL file. So we don't need to add styling to the header. #### Level 1 Step 1.2 @@ -58,7 +57,7 @@ In this step, we will position the header at the top of the page. In this step, we will try to move box with a class of `content-left` to the left side of the page. * Open `step-1.css`. - * Give `.content-left` a css style of `float: left` and a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. + * Give `.content-left` a css property that will make it float to the left. Also give it a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. *
Solution to Step 1.2 @@ -81,7 +80,7 @@ In this step, we will try to move box with a class of `content-left` to the left In this step, we are going to position the box with a class of `content-mid` to line up directly to the right of `.content-left`. * Open `step-1.css`. - * Give `.content-mid` a css style of `float: left`. + * Give `.content-mid` a css property that will make it float into the position directly after `content-left`. *
Solution to Step 1.3 @@ -103,7 +102,7 @@ In this step, we are going to position the box with a class of `content-mid` to In this step, we will position the footer at the bottom of the page. * Open `step-1.css`. - * Give `.footer` a css style of `position: absolute` and `bottom: 0`. + * Give `.footer` a css property so that it positions itself in relation to its parent and then move it to the lowest point of the parent element. *
Solution to Step 1.4 @@ -179,7 +178,7 @@ In this step, we will add the first box in the content-left container. * Open `step-2.css`. * Give the `.profile-image-container` a height and a width so you can see it on the webpage. - * Give the `.profile-image-container` a margin of auto. + * Give the `.profile-image-container` a margin so that it is centered. * Now that the div with the `.profile-image-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. *
@@ -202,7 +201,7 @@ In this step, we will add the second box in the content-left container. * Open `step-2.css`. * Give the div with a class of `.profile-links-container` a height and a width so you can see the element on the webpage. - * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand version. Like this `margin: 20px auto;`. + * Now lets try to give the div with a class of `.profile-links-container` a margin top, left and right all at the same time using the short-hand syntax. * Now that the div with the `.profile-links-container` class is centered you can go in and change the height and width to match the `step-2.jpg`. *
@@ -225,8 +224,8 @@ In this step, we will add the rectangle in the header and position in correctly * Open `step-2.css`. * Give the div with a class of `.logo-container` a height and a width so you can see the element on the webpage. - * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets make it float left by using `float: left`. - * Now the element is too close to the top-left corner. So lets give it a `margin-top` and a `margin-left`. Like this `margin-top: 20px` and `margin-left: 10px`. + * Now we need to move the element over to the left like you see in `step-2.jpg`. So lets give it a css property that will make it move to the left. + * Now the element is too close to the top-left corner. So lets give it some margin to move it to the correct position. * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. *
@@ -251,8 +250,8 @@ In this step, we will add the square in the header and position in correctly to * Open `step-2.css`. * Give the div with a class of `.menu-container` a height and a width so you can see the element on the webpage. - * Now we need to move the element over to the right like you see in `step-2.jpg`. So lets make it float right by using `float: right`. - * Now the element is too close to the top-right corner. So lets give it a `margin-top` and a `margin-right`. Like this `margin-top: 20px` and `margin-right: 30px`. + * Now we need to move the element over to the right like you see in `step-2.jpg`. So let's give it a css property to move it to the right. + * Now the element is too close to the top-right corner. So lets give it some margin to position it correctly. * The last thing we need to do is fix the height and the width to make our webpage look as close as we can to `step-2.jpg`. *
@@ -328,7 +327,7 @@ In this step, we will update our webpage so that it has the same structure and s In this step we will start making the content in the `.mid-content` div by adding a header to it. * Open `step-3.css`. - * Lets give the element with a class of `.content-mid-header` a height of 100px. Like this `height: 100px`. + * Lets give the element with a class of `.content-mid-header` a height so it appears like the template image. * Now our element is showing on the webpage. Good Job! *
@@ -368,9 +367,10 @@ In this step we will add some text inside of our `.content-left` div. In this step, we will fix the alignment and positioning of the text we added in the previous step. * Open `step-3.css` - * Now we can see our text is not in the correct spacing. Let's fix that by adding some padding. Like this `padding: 50px`. + * Now we can see our text is too close to the borders. Give it some spacing around the edges. There are multiple ways of doing this. * We should also fix the way the text is aligned. For that lets add `text-align: center`. - * Lastly our div seems to look a little short. Giving it a height should fix that. Try this `height: 275px`. Looking a lot better. Let's continue! + * Lastly our div seems to look a little short. Give it a css property to make it taller. + * Looking a lot better. Let's continue! *
Solution to Step 3.3 @@ -390,8 +390,8 @@ In this step, we will fix the alignment and positioning of the text we added in In this step, we will changing the size of the container that is housing the content we added in the previous two steps. * Open `step-3.css`. - * Give the element with a class of `content-container` a width of 80%. Like this `width: 80%`. - * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it some margin. Like this `margin: 40px auto`. + * Give the element with a class of `content-container` a css property that will make it the right width. + * We can also see in the image that this div has to be centered and moved down a bit. Lets accomplish that by giving it a css property that will add spacing on the outside of the div. *
Solution to Step 3.4 @@ -472,14 +472,14 @@ In this step, we will be giving the div with a class of `.main-top-section` a po In this step, we will be positioning the small menu box in the left hand side of the `level-2-step-1.jpg` image. * Open `step-1.css`. - * Let's start by giving `.menu` a display of inline-block. Like this `display: inline-block`. This will make it display side-by-side. + * Let's start by giving `.menu` a property that will make it display side-by-side. * Next lets give `.menu` a position of absolute. Like this `position: absolute`. This will give you the option to position the `.menu` element according to the first ancestor that has a position. That ancestor will be the `.main-top-section` because we gave it a position of relative in the previous step. - * Now we have the ability to give the `.menu` div a top, right, bottom, and left css property. - * Lets give `.menu` a left position of 10px and a top position of 10px. Like this `left: 10x` and `top: 10px`. + * Now we have the ability to give the `.menu` div a top, right, bottom, and left css property. Give `.menu` two of these css properties to position it correctly. * Now the `.menu` element is in the correct position. But the other two elements are stacked on top. Let's fix that! - * Let's give `.logo` a display of inline-block. Like this `display: inline-block`. - * Let's also give the element with a class of `.sign-in` a display of inline-block as well. - * Now let's give `.sign-in` a position of absolute, and a top and right property to position it correctly. Like this `position: absolute`, `top: 10px`, and `right: 10px`. + * Let's give `.logo` a css property that will make it display side-by-side. + * Let's also give the element with a class of `.sign-in` a a css property that will make it display side-by-side. + * Now let's give `.sign-in` a css property that will give it a position in relation to its parent. + * Now `.sign-in` can be moved by using top, right, bottom, and left. Use some of these to position it correctly. * That looks better! *
@@ -522,8 +522,8 @@ In this step, we will be positioning the small menu box in the left hand side of In this step, we will position the last green element overhanging below its parent element. * Open `step-1.css`. - * Now how are we going to move the element towards the bottom in reference to its parent? Position absolute of course! So lets give the element with a class name of `.bottom-container` a position of absolute. Like this `position: absolute`. - * Lastly let's give it a bottom and left properties. The bottom property will need to be a negative pixel value so that it is overhangs. Like this `bottom: -30px` and `left: 22%`; + * Now how are we going to move the `.bottom-container` element towards the bottom in reference to its parent? Lets give the element with a class name of `.bottom-container` a position that will move it in relation to its parent. + * Lastly let's give it a bottom and left properties. The bottom property will need to be a negative pixel value so that it is overhangs. * Looking good! *
@@ -618,7 +618,7 @@ In this step, we will also be re-creating an image that will be provided to you. In this step, we will be using a css property to align items in the center of the webpage. * Open `step-2.css`. - * Give the element with the class name of `main-bottom-section` a property of text-align with a value of center. Like this `text-align: center`. + * Give the element with the class name of `main-bottom-section` a property that will center the text inside. *
level-2/step-1/level-1-step-3.css @@ -639,8 +639,8 @@ In this step, we will be adding a width, height and display property to make the * In the `level-2-step-2.jpg` image you can see there are three different types of boxes in the bottom container. The small square, the rectangle, and the big square. * Lets give each of these their corresponding height and width. * Open `step-2.css`. - * Starting with the small squares which have a class name of `.item`, lets give them a height and a width. Like this `height: 200px` and `width: 40%`. - * But our items are not lined up correctly. Lets give them a property so they display side-by-side. Like this `display: inline-block`. + * Starting with the small squares which have a class name of `.item`, lets give them a height and a width. + * But our items are not lined up correctly. Lets give them a property so they display side-by-side. * Looks perfect! *
@@ -663,8 +663,8 @@ In this step, we will be adding a width, height and display property to make the In this step, we will be adding a width, height and a margin property to make the rectangle container look like the `level-2-step-2.jpg` image. * Open `step-2.css`. - * Now lets focus on the rectangle element with a class of `.full-width-item`. Let's give this element a width and height. Like this `width: 80%` and `height: 200px`. - * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the two middle values as the left and right margins and the last value as the bottom-margin. + * Now lets focus on the rectangle element with a class of `.full-width-item`. Let's give this element a width and height. + * Now the element is the right size but too close to the surrounding elements. Lets fix that by giving `.full-width-item` a css property of margin with the correct value. Like this `margin 0 auto 30px`. When you give an element a margin property with 3 values it takes the first value as the margin-top the middle value as the left and right margins and the last value as the bottom-margin. *
level-2/step-2/level-2-step-2.css @@ -685,8 +685,8 @@ In this step, we will be adding a width, height and a margin property to make th In this step, we will add a height, width and a margin to make the big square look like the `level-2-step-2.jpg` image. * Open `step-2.css`. - * On the element with a class name of `.large-item` let's give it a height and with property. Like this `height: 500px` and `width: 80%`. - * Again too close to the surrounding elements lets give it some margin. Like this `margin: 0, auto, 30px`. + * On the element with a class name of `.large-item` let's give it a height and with property. + * Again too close to the surrounding elements lets give it some margin. Try to use the short hand syntax. * Nice! Congratulations you've finished level-2. *
@@ -759,7 +759,7 @@ In this step, we will be adding a background image to the `main-top-section`. * Open `step-1.css`. * Give the element with a class of `.main-top-section` a background property with a value pointing to the `Background.png` image inside the `img` folder. Like this `background: url("../img/Background.png") no-repeat`. First you set the background to `url()`. Then you used `..` to go up one directory, then `/img` to enter the `img` folder, then `/Background.png` to select the background image file. Then adding `no-repeat` to the back of the url will make the image not repeat. By default the image will repeat to cover the whole page. - * Next let's give the background image a property of `background-size` with a value of `cover`. Like this `background-size: cover`. + * Next let's give the background image a css size property to make it cover the page. * Looks great! On to the next step. *
@@ -1249,6 +1249,14 @@ Like this `@media(min-width: 900px)`. This means that starting at a minimum widt
+## Contributions + +If you see a problem or a typo, please fork, make the necessary changes, and create a pull request so we can review your changes and merge them into the master repo and branch. + ## Copyright © DevMountain LLC, 2016. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content. + +

+ +

From f8c01c26007c953e9bb26f5ce3c9aff2b5ed5e46 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 11:00:08 -0700 Subject: [PATCH 41/43] fixing --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f627a09..ed240a19 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,8 @@ In this step, we will position the header at the top of the page. In this step, we will try to move box with a class of `content-left` to the left side of the page. * Open `step-1.css`. - * Give `.content-left` a css property that will make it float to the left. Also give it a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. + * Give `.content-left` a css property that will make it float to the left. + * Give `.content-left` a `padding-top: 35px`. The reason we gave the div with a class of `.content-left` a padding on top is that it will have content inside in the future. *
Solution to Step 1.2 From ea1abbacdc651fe46be6df88ecf308cb8b620fbb Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 11:02:51 -0700 Subject: [PATCH 42/43] fixing --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed240a19..a0dcd3b5 100644 --- a/README.md +++ b/README.md @@ -369,7 +369,7 @@ In this step, we will fix the alignment and positioning of the text we added in * Open `step-3.css` * Now we can see our text is too close to the borders. Give it some spacing around the edges. There are multiple ways of doing this. - * We should also fix the way the text is aligned. For that lets add `text-align: center`. + * We should also fix the way the text is aligned. Center the text. * Lastly our div seems to look a little short. Give it a css property to make it taller. * Looking a lot better. Let's continue! *
@@ -386,7 +386,7 @@ In this step, we will fix the alignment and positioning of the text we added in
-# Level 1 Step 3.4 +#### Level 1 Step 3.4 In this step, we will changing the size of the container that is housing the content we added in the previous two steps. From a610625fb5490fa2c3157189408924f44c24096e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jun 2017 12:07:14 -0700 Subject: [PATCH 43/43] fixing --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0dcd3b5..3a3fd9f3 100644 --- a/README.md +++ b/README.md @@ -978,11 +978,11 @@ In this step, we will be adding the src path on each of the images in the bottom ## Level 3 Step 3 -## Summary +### Summary In this step, we will be giving our page a little taste of responsiveness. We will be making our images stop growing at a certain screen width. Lets begin! -## Instructions +### Instructions * Open `index.html`. * Inside the `` uncomment the link to `step-3.css`, and comment out the links to `step-1.css` and `step-2.css`.