DEV Community

Discussion on: CSS: Absolute center element

Collapse
 
link2twenty profile image
Andrew Bone

My most up voted stack overflow answer was about this 😁

top:0 (default)

By default, your element is at the top of the page, and the top of the element is at 0:

--------Top of Page--------
{element}


------Middle of  Page------



------Bottom of  Page------

top:50%

When you move it down by 50% height (50% of the entire page), the top of the…

Collapse
 
d__raptis profile image
Jim Raptis

Nice detailed answer. It's a tricky topic πŸ’ͺ