Revamp snippet descriptions
This commit is contained in:
@ -5,9 +5,9 @@ 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.
|
||||
- Use `display: flex` to use the flexbox layout.
|
||||
- Use `justify-content: space-between` to 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, you can use `justify-content: space-around` to distribute the children with space around them, rather than between them.
|
||||
|
||||
```html
|
||||
<div class="evenly-distributed-children">
|
||||
|
||||
Reference in New Issue
Block a user