For further actions, you may consider blocking this person and/or reporting abuse
Read next
Building a Responsive, Drag-and-Drop Image Gallery with React and Tailwind CSS 🎨
Julfikar Haidar -
Deploying NestJS Application using Vercel and Supabase
Abayomi Olatunji -
Week 4 Recap of #100DaysOfCode: From Creative CSS to JavaScript Adventures 🚀
heritech9 -
Real-Time Processing of Big Data: Tools and Best Practices
Hana Sato -
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!