In this example, we have 2 snippets that do exactly the same thing. The main difference is that one of them saves you some lines of CSS. Snippet number 2 will use the min function and subtract 30px (this ensures you get equal spacing of 15px each side) from 100% to give us spacing we want on the sides while also limiting the width to 840px. Then, centering the container by applying margin left and right of auto.
If you found this content useful, please let me know by smashing the like button and subscribing to the channel. I would greatly appreciate it. Also, if you have any feedback, questions or concerns, let me know in the comments section 💬. Thanks ☺️
#css #shorts
Watch video Refactoring your CSS: Beginner vs Advanced online without registration, duration hours minute second in high quality. This video was added by user Julio Codes 05 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,155 once and liked it 215 people.