Update format

This commit is contained in:
Angelos Chalaris
2020-04-30 13:21:04 +03:00
parent d9fd2d23c3
commit 2fbd3e0737
55 changed files with 412 additions and 571 deletions

View File

@ -5,6 +5,10 @@ tags: layout,intermediate
Evenly distributes child elements within a parent element.
- `display: flex` enables flexbox.
- `justify-content: space-between` evenly distributes child elements horizontally. The first item is positioned at the left edge, while the last item is positioned at the right edge.
- Alternatively, use `justify-content: space-around` to distribute the children with space around them, rather than between them.
```html
<div class="evenly-distributed-children">
<p>Item1</p>
@ -19,10 +23,3 @@ Evenly distributes child elements within a parent element.
justify-content: space-between;
}
```
#### Explanation
- `display: flex` enables flexbox.
- `justify-content: space-between` evenly distributes child elements horizontally. The first item is positioned at the left edge, while the last item is positioned at the right edge.
- Alternatively, use `justify-content: space-around` to distribute the children with space around them, rather than between them.