For further actions, you may consider blocking this person and/or reporting abuse
Read next
🛠️ React Server Components vs. Client Components: When to Use Which? ⚡
Hamza Khan -
SEMANTIC HTML AND ACCESIBILITY
felix kagecha -
Python NumPy Tutorial for Beginners: Learn Array Creation, Indexing, and More
Arum Puri -
How Does Machine Learns (Intro to Machine Learning)
Prakhar Khandelwal -
Top comments (2)
Looking at the MDN article for CSS
margin
it says:Citation: developer.mozilla.org/en-US/docs/W...
So
margin: 0 auto
is the same as the following 4 properties:When
margin-left
andmargin-right
are bothauto
that will usually center-align a Block Level Element, like a<div>
.Thanks!