We're a place where coders share, stay up-to-date and grow their careers.
I usually use margin: auto to center the content in the middle.
margin: auto
Does it work even for the absolute content? I tried but doesn't seems working. Any codepen or something to refer?
Sorry, my bad. I was thinking all the moment in relative position. Your code is useful in absolute position, sure!
I usually use
margin: auto
to center the content in the middle.Does it work even for the absolute content? I tried but doesn't seems working. Any codepen or something to refer?
Sorry, my bad. I was thinking all the moment in relative position. Your code is useful in absolute position, sure!