odin-default-css-exercises/margin-and-padding/margin-and-padding-1
ZebraMilk 04bf4da6d1 Add indents to <body> and <head> tags in all exercises 2022-01-30 12:16:13 -06:00
..
solution Add indents to <body> and <head> tags in all exercises 2022-01-30 12:16:13 -06:00
README.md Merge pull request #33 from WoahJo/fix/filename-fix 2021-10-04 14:04:38 -05:00
desired-outcome.png change folder structure 2021-08-18 15:35:18 -05:00
index.html Add indents to <body> and <head> tags in all exercises 2022-01-30 12:16:13 -06:00
style.css move styles to own file 2021-08-18 15:49:04 -05:00

README.md

Margin and Padding practice

For this first exercise, simply edit the style.css file so that the divs look like the image below. Only edit the CSS where instructed in the file. You should only have to change the values of the margin and padding for this exercise. You should not have to add or remove properties in the CSS, or touch the HTML.

outcome

Self-check

Use this section to check your work. On these projects, your goal isn't to attain 100% pixel perfection, but to use the tools you've learned to get relatively close to the desired output.

  • Div One and Div Three have 32px between their text and border.
  • Div One has 12px between it and any other element on the page.
  • There is a 48px gap between Div Two and Div Three.
  • Div Three is aligned to the right.
  • Div Three's alignment is achieved using margin (and not float, flexbox, etc.).