You're here: Home » CSS » CSS Parallelogram Shape

CSS Parallelogram Shape

On Dec 2, 2011 under CSS

Make Parallelogram with CSS3. Just a 20 degree shift gives the required parallelogram. It’s built with pure CSS. Check it below.

Parallelogram

Demo

CSS

.parallelogram-shape {
    width: 160px;
    height: 80px;
    background: #dd8863;
    -webkit-transform: skew(20deg);
    -moz-transform: skew(20deg);
    -o-transform: skew(20deg);
    transform: skew(20deg);
    margin: 20px;
}

HTML

<div class="parallelogram-shape"></div>

Comments on this entry (4 comments)

Did you like this post? You can share your opinion with us! Simply click here.

  1. Adam says:

    Thanks for that CSS , very useful.
    Adam recently posted..Cool Sketches To Draw

  2. Come with us at Psd to wordpress is a professional service .Here we offer our valuable services in PSD to

    WordPress theme coding. Our process usually consists of three steps: you provide your PSD file with all the

    creative work,We will do the technical conversion process for you, if satisfied with the demo the final result

    will be send to you.psd to wordpress coding $99

  3. NS Mukundan says:

    nice css hack. thanks for the share :)
    NS Mukundan recently posted..Celandine Corn Remover

  4. ramzes says:

    If I’ll put image in this shape it will be without skew?

Leave a Reply

CommentLuv badge