How to Create Parallelograms in CSS
March 23, 2020
Create a Parallelogram In CSS
Create a square with a height, width, and background:
1..parallelogram {2. width: 100px;3. height: 100px;4. background: salmon;5.}
Then use the CSS transform function skew(). The skew() function takes in an angle value either in radians (rad), degrees (deg), gradians (grad), or turns (turn).
1..parallelogram {2. width: 100px;3. height: 100px;4. background: salmon;5. transform: skew(25deg);6.}
That's it, you now have a parallelogram in CSS. You can change the angle to get more or less pronounced parallelograms if you want.
More CSS Snippets
Popular Articles
I Can't Believe It's Not CSS: Styling Websites with SQL
Style websites using SQL instead of CSS. Database migrations for your styles. Because CSS is the wrong kind of declarative.

How I Built an Oreo Generator with 1.1 Sextillion Combinations
Building a web app that generates 1,140,145,285,551,550,231,122 possible Oreo flavor combinations using NestJS and TypeScript.

AI Model Names Are The Worst (tier list)
A comprehensive ranking of every major AI model name, from the elegant to the unhinged. Because apparently naming things is the hardest problem in AI.