odin-default-css-exercises/flex/03-flex-header-2
maznevskia 3b4ebbfde5 Removed extra space from style.css 2022-06-30 11:42:30 +02:00
..
solution Add indents to <body> and <head> tags in all exercises 2022-01-30 12:16:13 -06:00
README.md Fix punctuation and grammar in Flex READMEs 2021-10-04 10:19:36 -07:00
desired-outcome.gif rename directories 2021-08-24 12:22:46 -05:00
desired-outcome.png rename directories 2021-08-24 12:22:46 -05:00
index.html Add indents to <body> and <head> tags in all exercises 2022-01-30 12:16:13 -06:00
style.css Removed extra space from style.css 2022-06-30 11:42:30 +02:00

README.md

Another common header style

We're starting to sneak in a little more CSS that you haven't seen yet. Don't worry about this for now; we just want things to look a little bit prettier, and this CSS will not interfere with your task.

For this one you will probably need to edit the HTML a little bit. Often with flexbox you need to add containers around things to make them go where you need them to go. In this case, you probably want to separate the items that go on the left and right of the header.

This is also the first example where you'll be nesting flex containers inside each other.

Desired outcome

As with the last example, this one needs to be flexible in the middle, with items pushed to the left and right.

png

gif

Self Check

  • Everything is centered vertically inside the header.
  • There is 8px space between everything and the edge of the header.
  • Items are arranged horizontally as seen in the outcome image.
  • There is 16px between each item on both sides of the header.
  • flex is used to arrange everything.