flâneur — a map of the web's best reading

The Best Way to Implement a "Wrapper" in CSS | CSS-Tricks - CSS-Tricks

css-tricks.com · 1,182 words · saved by 1 readers

Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The term wrapper is common for that. We give

Sometimes the first bit of HTML we write in a new document is an element that wraps everything else on the page. The term wrapper is common for that. We give it a class, and that class is responsible for encapsulating all visual elements on the page. I’ve always struggled to with the best way to implement it. I found a related thread on StackOverflow that has more than 250,000 views, so obviously I’m not the only one wondering! I’ll sum up my latest thoughts in this article. Before we dive into it, let’s first examine the difference between the “wrapper” and

Explore this link on the map →

saved by

related reading