I'm trying to create a skewed background on my website. The blocks will all have a skewed top and bottom line (like a parallelogram).
Tried using css:
transform: skewY(-30deg);
but it's not working responsively. Any thoughts on a good practice?
I really like the css generated content method of Jeremy Frank - he even provides a cool SASS-Mixin in his article: https://www.viget.com/articles/angled-edges-with-css-masks-and-transforms
I use this variation alot:
Here is a start, both very lightweight
Using a pseudo element
Using
linear-gradient