Add extractor and builder
Tested and working
This commit is contained in:
@ -5,14 +5,10 @@ tags: layout,intermediate
|
||||
|
||||
Horizontally and vertically centers a child element within a parent element using `flexbox`.
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
<div class="flexbox-centering"><div class="child">Centered content.</div></div>
|
||||
```
|
||||
|
||||
#### CSS
|
||||
|
||||
```css
|
||||
.flexbox-centering {
|
||||
display: flex;
|
||||
@ -22,8 +18,6 @@ Horizontally and vertically centers a child element within a parent element usin
|
||||
}
|
||||
```
|
||||
|
||||
#### Demo
|
||||
|
||||
#### Explanation
|
||||
|
||||
1. `display: flex` enables flexbox.
|
||||
|
||||
Reference in New Issue
Block a user