Digital Ocean logo

CSS-Tricks is joining the DigitalOcean community! We are so excited to be joining forces. Learn more about this change here. As a special welcome offer, enjoy $100 of free credit to try DigitalOcean on us.

Direct link to the article :left

:left

The :left pseudo-class in CSS is used with the @page at-rule to select all left-hand pages in a print document that contains multiple pages. That’s handy for setting margins on double-sided pages so that the pages on the “left” side …

Avatar of Sunkanmi Fafowora
Sunkanmi Fafowora on (Updated on )
Direct link to the article grid

grid

The grid CSS property is a shorthand that allows you to set all the implicit and the explicit grid properties in a single declaration.

.grid-container {
  display: grid;
  grid: auto-flow dense / repeat(5, 150px);
}
Avatar of Mojtaba Seyedi
Mojtaba Seyedi on (Updated on )
Keep browsing in the archives