CSS Project

Wow. That was a whole lot of styling! Who knew colors were this hard to get right? 😄

Let us now use our newfound knowledge to give our project some colors and space.

Goals

  • Responsive design
  • Easily recognizable headings

Discussion

The final solution can be found at the bottom of the page. It now looks much more modern. The navigation bar is easily identifiable and every recipe is clearly separated from other recipes.

Grid

The grid layout and various properties have been used to create a layout for the whole page. Notice how the layout changes depending on the device with the help of media queries.

Flex

The flex property has been used aggressively to position and size elements as we want throughout the whole page.

Header and navigation

We've chosen to add a grayish background to separate the navigation section from the rest of the page. Some padding has been added to create some space and make it feel less cluttered.

Recipes

Every recipe now lives in its own little shadowed box. The ingredients, instructions and pictures are flexible rows for larger devices and have been widened to take up a whole row each for smaller devices using media queries.

Code and Preview

Editor
Preview