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,beginner
Horizontally and vertically centers a child element within a parent element using `flexbox`.
- `display: flex` creates a flexbox layout.
- `justify-content: center` centers the child horizontally.
- `align-items: center` centers the child vertically.
```html
<div class="flexbox-centering">
<div>Centered content.</div>
@ -19,9 +23,3 @@ Horizontally and vertically centers a child element within a parent element usin
height: 100px;
}
```
#### Explanation
- `display: flex` creates a flexbox layout.
- `justify-content: center` centers the child horizontally.
- `align-items: center` centers the child vertically.