diff --git a/README.md b/README.md index 3dd94a43..2569a5d6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ - + # Project Summary -In this project, you will be given three levels of practice using HTML and CSS. Each level will contain three or less steps. Each step will build on the last step and will contain an image file. You can use that image file as reference. The goal is to try to get as close as possible to the image's layout, using HTML and CSS that you write yourself. +In this project, you will be given three levels of practice using HTML and CSS. Each level will contain three or less steps. Each step will build on the last step and will contain an image file. You will use the image file as a reference for what the result should look like. The goal is to try to get as close as possible to the image's layout, using HTML and CSS that you write yourself. If you get stuck on a level you can view the solution folder provided in each level. Try to only use this folder as a last resort. -Don't worry about being pixel perfect, and don't worry if your code doesn't match the solution exactly. As long as it looks the same as the provided image, you're doing it right. +Don't worry about being pixel perfect and don't worry if your code doesn't match the solution exactly. As long as it looks close to the provided image, you're doing it right. # Level 1 @@ -14,11 +14,11 @@ Don't worry about being pixel perfect, and don't worry if your code doesn't matc * Open `level-1/index.html` && `level-1/step-1.css` && `level-1/step-1.jpg`. * Locate the element with the class of `content-left`. - * Position this element to the left side of the screen. + * Position this element to the left side of the screen using `float`. * Locate the element with the class of `content-mid`. - * Position this element to appear just to the right of `content-left` and take up the remaining space. + * Position this element with `float` to appear just to the right of `content-left` and take up the remaining space. * Locate the element with the class of `footer`. - * Position this element to appear at the bottom of the page. + * Position this element to appear at the bottom of the page using the `clear` property. ## Step 2 @@ -58,9 +58,9 @@ Don't worry about being pixel perfect, and don't worry if your code doesn't matc * Locate the element with the class of `menu`, `logo` and `sign-in`. * Assign a display that will allow these elements to appear on the same line. * Locate the element with the class of `menu`. - * Assign a position, left, and top. + * Use `float` to position the element to the left. * Locate the element with the class of `sign-in`. - * Assign a position, right, and top. + * Use `float` to position the element to the right. ## Step 2 @@ -76,6 +76,8 @@ Don't worry about being pixel perfect, and don't worry if your code doesn't matc # Level 3 +In level three, you will see some CSS properties that you haven't been exposed to just yet. Take this opportunity to do a little sefl study but know that you will be exposed to it during a later lecture. + ## Step 1 * Open `level-3/index.html` && `level-3/step-1.css` && `level-3/step-1.css`. @@ -111,8 +113,8 @@ If you see a problem or a typo, please fork, make the necessary changes, and cre ## Copyright -© DevMountain LLC, 2017. 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. +© DevMountain LLC, 2019. 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 571198df..78865286 100755 --- a/level-1/step-1/step-1.css +++ b/level-1/step-1/step-1.css @@ -4,7 +4,7 @@ background: #D8D8D8; } -/* I would suggest using float to get this container in its desired location. */ +/* Use float to get this container in its desired location. */ .content-left { width: 34%; @@ -14,7 +14,7 @@ } -/* I would suggest using float to get this container in its desired location. */ +/* Use float to get this container in its desired location. */ .content-mid { width: 66%; @@ -23,7 +23,7 @@ background: #B0B0B0; } -/* I would suggest using position to get this container to the bottom of the screen */ +/* Use float to get this container to the bottom of the screen */ .footer { width: 100%; diff --git a/level-1/step-2/step-2.css b/level-1/step-2/step-2.css index 98367c40..73095f05 100644 --- a/level-1/step-2/step-2.css +++ b/level-1/step-2/step-2.css @@ -1,10 +1,10 @@ -/* Step-2 You can assign padding to all sides of a container by using the padding property. */ +/* Step-2 You can assign padding to all sides of a container by using the padding shorthand property. */ .content-left { } -/* Step 2 You can assign padding to all sides of a container by using the padding property. */ +/* Step 2 You can assign padding to all sides of a container by using the padding shorthand property. */ .header { @@ -23,14 +23,14 @@ background: #12F3F7; } -/* Step-2 You can either use float left or position absolute to get this element to in the desired location. */ +/* Step-2 You can either use float left to get this element to in the desired location. */ .logo-container { background: #4F4949; } -/* Step-2 You can either use float left or position absolute to get this element to in the desired location. */ +/* Step-2 You can either use float right 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 482d3591..5589c8b2 100755 --- a/level-1/step-3/step-3.css +++ b/level-1/step-3/step-3.css @@ -1,4 +1,4 @@ -/* Step-3 You can assign padding to all sides of a container by using the padding property. */ +/* Step-3 You can assign padding to all sides of a container by using the padding shorthand property. */ .content-mid { diff --git a/level-2/index.html b/level-2/index.html index 7273d7fe..9f40e412 100644 --- a/level-2/index.html +++ b/level-2/index.html @@ -1,49 +1,38 @@ - - - - level-2 - - - - - - - - - - - - -
- -
-
- - - - - -
- -
-
- -
- -
-
- -
- -
- -
-
- -
- -
- - \ No newline at end of file + + + level-2 + + + + + + + + + + +
+
+
+ + + +
+
+ +
+
+
+ +
+ +
+ +
+
+
+
+ + diff --git a/level-2/solution/step-1.css b/level-2/solution/step-1.css index 066adff9..1795aee5 100644 --- a/level-2/solution/step-1.css +++ b/level-2/solution/step-1.css @@ -1,54 +1,37 @@ /* Add styles to match the step-1 design */ .main-top-section { - width: 100%; - height: 375px; - background: #F7F1E7; - position: relative; + width: 100%; + height: 375px; + background: #f7f1e7; + position: relative; } - .top-header { - width: 100%; - height: 70px; - text-align: center; - background: #D8D8D8; + width: 100%; + height: 70px; + text-align: center; + background: #d8d8d8; } .menu { - width: 100px; - height: 40px; - background: #536A63; - display: inline-block; - position: absolute; - left: 10px; - top: 10px; + width: 100px; + height: 40px; + background: #536a63; + float: left; } .logo { - width: 300px; - height: 40px; - margin-top: 10px; - background: #536A63; - display: inline-block; + 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; -} - -.bottom-container { - width: 60%; - height: 60px; - left: 22%; - background: #536A63; - position: absolute; - bottom: -30px; + width: 100px; + height: 40px; + background: #536a63; + float: right; } diff --git a/level-2/step-1/step-1.css b/level-2/step-1/step-1.css index a94826c0..465e6e3f 100755 --- a/level-2/step-1/step-1.css +++ b/level-2/step-1/step-1.css @@ -18,6 +18,7 @@ width: 100px; height: 40px; background: #536A63; + float: left; } .logo { @@ -25,19 +26,13 @@ height: 40px; margin-top: 10px; background: #536A63; + display: inline-block; + } .sign-in { width: 100px; height: 40px; background: #536A63; -} - -/* Step-1 Make this container overhang off its parent container using display and bottom properties. */ - -.bottom-container { - width: 60%; - height: 60px; - left: 22%; - background: #536A63; + float: right; } \ No newline at end of file diff --git a/level-2/step-1/step-1.jpg b/level-2/step-1/step-1.jpg index 6bd554b6..d4864a0f 100644 Binary files a/level-2/step-1/step-1.jpg and b/level-2/step-1/step-1.jpg differ diff --git a/level-2/step-2/step-2.jpg b/level-2/step-2/step-2.jpg index 5c111eba..162743b7 100644 Binary files a/level-2/step-2/step-2.jpg and b/level-2/step-2/step-2.jpg differ diff --git a/level-3/index.html b/level-3/index.html index 89a6fa83..76bd928e 100755 --- a/level-3/index.html +++ b/level-3/index.html @@ -20,21 +20,21 @@
- +
- shop icon + shop icon
@@ -79,4 +79,4 @@ - \ No newline at end of file + diff --git a/level-3/solution/step-1.css b/level-3/solution/step-1.css index 81cfb2bc..b97c36a6 100644 --- a/level-3/solution/step-1.css +++ b/level-3/solution/step-1.css @@ -1,73 +1,62 @@ .main-top-section { - width: 100%; - height: 200px; - position: relative; - background-color: #F2EFE5; + width: 100%; + height: 200px; + position: relative; + background-color: #f2efe5; } - .top-header { - width: 100%; - padding-top: 10px; - height: 70px; - text-align: center; - + width: 100%; + padding-top: 10px; + height: 70px; + text-align: center; } - .menu { - width: 100px; - height: 40px; - display: inline-block; - position: absolute; - left: 10px; - top: 20px; - + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + left: 10px; + top: 20px; } .menu-icon { - width: 60%; - + width: 60%; } .logo { - width: 300px; - height: 40px; - display: inline-block; - margin-top: 10px; - + width: 300px; + height: 40px; + display: inline-block; + margin-top: 10px; } .logo-icon { - width: 75%; + width: 75%; } .sign-in { - width: 100px; - height: 40px; - display: inline-block; - position: absolute; - right: 10px; - top: 30px; - + width: 100px; + height: 40px; + display: inline-block; + position: absolute; + right: 10px; + top: 30px; } .sign-in-icon { - width: 60%; + width: 60%; } - .bottom-container { - width: 100%; - height: 60px; - position: absolute; - text-align: center; - bottom: -30px; - + width: 100%; + height: 60px; + position: absolute; + text-align: center; + bottom: -30px; } - .shop-icon { - width: 350px; + width: 350px; } -