Drawing an odd shape: HTML CSS Question
I'm working on a web page, but I want to use as little image elements as possible. I've ran into a problem though.
How can I draw slanted rectangles?
If possible, I'd like to do this using HTML/CSS, but I'm ready to jump into the unknown if it can be done with some other code.
0
Posts
#parallelogram {
width: 150px;
height: 100px;
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
background: blue;
}
See also here