CSS Centering and Image/Div Hor & Ver


/ Published in: CSS
Save to your folder(s)

Negative margins are exactly half the height and width, which pull the element back into perfect center. Only works with elements of a fixed height/width.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.