This post shares some of Alvaro Montoro's trusty CSS one-liners to enhance web projects, such as limiting content width, increasing text size and line spacing, balancing headings, and reducing animations. Additionally, the author adds helpful snippets for global border-box sizing, using system fonts, preventing horizontal overflow, and providing padding for the body element.
Table of contents
Global border-box sizingSystem fontsCut horizontal overflow from the <body>Give the <body> some breathing room3 Comments
Sort: