Making reusable components is an important part of web development. Lets look at a trap that beginners often fall into, and a better way to do it. Stop using outer margins, and instead opt for a layout container when you need spacing between elements.
No Outer Margin Blog: https://kyleshevlin.com/no-outer-margin/
CSS Tricks Flexbox Chest Sheet: https://css-tricks.com/snippets/css/a...
-----
🐦 Twitter (X): / jollyshopland
🤓 Personal Site: https://jamesshopland.com
💻 GitHub: https://github.com/jolbol1
Where I Work: https://jollycod.ing/work