Margin is not working

Hello! I’m making something on codepen? But the mergin left is not working on the mouth-circle class I have tried like even very big numbers but it didn’t worked. Is it because of code pen or their is a prob with my code?

Like I want the red circle to be in center of the face but it’s not going over there.

Hi there! You have position: absolute; on this object, so use right or left, not margin

2 Likes

Thank you! Also when we use position: absolute the margin don’t work? Is it like that?

1 Like

Yes, elements with absolute position are removed from the normal flow of the page and they can overlap other elements, so using margin for positioning is useless in this case

2 Likes