I'm trying to center an element. But can you please tell me why I have to specify width in order to make my element center for margin : 0 auto to work ? How does auto work if width is not specified ? Can someone please explain ?
Asked
Active
Viewed 11 times
0
-
because by default it's full width so nothing to center – Temani Afif Feb 17 '22 at 22:03