Lab
Increase Your FlexibilityIntroduction
The flexible box model is a CSS one-dimensional layout model. Using flexbox, you can control the space distribution, alignment, and order of items.
Objective
For this lab, you will be updated the layout of of the provided web page using Flexbox to match requirements and videos below.
Requirements
The following instructions explain the different changes that need to be made to the site. The videos below shows what the final product should look like.
- Download the Increase Your Flexibility Starter Files. Add the appropriate CSS to the
style.css
file to make the changes to the web page. No changes should be made to theindex.html
orbase.css
file. - Create a responsive navbar, with the "My New Site" link on the left side and the remaining link on the right. For small screens (<480px), the "My New Site" link should be on a separate row than the other three links. See the Header / Intro Section video.
- Update the text "Your Name Here" with your name and "Your Title Here" with your title and center the text, both vertically and horizontally, inside the intro section. See the Header / Intro Section video.
- Update the about section, so that the image and text are aligned horizontal on large screens (>768px) and aligned vertically on smaller screens (<768px). See the About Section video.
- In the Work section, create a responsive grid of cards. See the Work Section video.
- Update the contact section, so that the image and text are aligned horizontal on large screens with the form appearing on left side and the image on the right. As the screen gets too small to hold both form and image, the image and text should be aligned vertically with the image first. See the Contact Section video.
- Once completed, submit the
style.css
file only to the Increase Your Flexibility assignment on BrightSpace.
Hint: Empty media queries have been provided in the style.css
file to help with the completion of this lab.
Header / Intro Section
About Section
Work Section
Contact Section
The form is laid out differently in the following video. No changes need to be made to the form itself.