Skip to content

Files

Latest commit

3a151fe · Jul 3, 2019

History

History
executable file
·
12 lines (10 loc) · 256 Bytes

File metadata and controls

executable file
·
12 lines (10 loc) · 256 Bytes

Сместим мяч в центр при помощи left/top=50%, а затем приподымем его указанием margin:

#ball {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -20px;
  margin-top: -20px;
}