Share this postjustify-content: center and align-items: center leads to loss of elementscssisntmagic.substack.comCopy linkFacebookEmailNoteOtherjustify-content: center and align-items: center leads to loss of elementsStas MelnikovJul 03, 2024Share this postjustify-content: center and align-items: center leads to loss of elementscssisntmagic.substack.comCopy linkFacebookEmailNoteOtherShareWarning! justify-content or align-items don't respect the dimensions of elements. As a result, we can lose elements, if they are more than their parent. It's why margin: auto is the best alternative!