odin-default-css-exercises/margin-and-padding/margin-and-padding-1/README.md

14 lines
893 B
Markdown
Raw Normal View History

2021-08-17 20:27:54 +00:00
# Margin and Padding practice
For this first exercise, simply edit the `index.html` 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.
2021-08-18 14:11:35 +00:00
![outcome](./desired-outcome.png)
### 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.
2021-08-18 14:11:35 +00:00
- 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.)