CSS margins 📏

CSS margin tutorial example explained #CSS #margin #tutorial body{ margin: 0px; } #box1{ border: 5px solid; width: 250px; height: 250px; font-size: 22px; background: greenyellow; /* margin-top: 50px; margin-left: 50px; margin-bottom: 50px; margin-right: 50px; margin: 50px; */ margin-right: auto; margin-left: auto; } #box2{ border: 5px solid; width: 250px; height: 250px; font-size: 22px; background: dodgerblue; }
Back to Top