No replies
NibelungValesti
NibelungValesti's picture
Offline
newbie
Philippines
Last seen: 7 years 18 weeks ago
Philippines
Timezone: GMT+8
Joined: 2016-01-21
Posts: 1
Points: 2

I'm confused whether when to use left: 0; right: 0; in an absolute positioned element. Sometimes it works sometimes it doesn't, are there any requirements on the element's parent DIV for it to work? I want to understand.

Same goes for vertical aligning: top 50%; transform: translateY(-50%);

Thanks I'm new, sry for my bad english