renovations
This commit is contained in:
parent
dceccedb58
commit
6ac9e3a500
182 changed files with 275 additions and 324 deletions
13
8-css-for-js/6-css-center/1-center-ball-css/solution.md
Normal file
13
8-css-for-js/6-css-center/1-center-ball-css/solution.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
Сместим мяч в центр при помощи `left/top=50%`, а затем приподымем его указанием `margin`:
|
||||
|
||||
```css
|
||||
#ball {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -20px;
|
||||
margin-top: -20px;
|
||||
}
|
||||
```
|
||||
|
||||
[edit src="solution"]Полный код решения[/edit]
|
Loading…
Add table
Add a link
Reference in a new issue