How can I make a similar shape to a parallelogram in css?

Chipe

I am trying to make a shape similar to a parallelogram, but without the angle on the right side. So it will keep its straight up and down line on the right, but the left side will keep its angle. Here is a fiddle: http://jsfiddle.net/2hj88xts/

CSS:

#parallelogram {
   width: 250px;
   height: 100px;
   transform: skew(-15deg);
   background: red;
}
War10ck

You could try using a border-left with transparent as the color and abandon the *-transform's altogether. This would require a CSS change but no additional HTML markup:

Current Angle:

#parallelogram {
    width: 250px;
    height: 0;
    border-bottom: 100px solid red;
    border-left: 30px solid transparent;
    margin-left: 10px;
}
<div id="parallelogram"></div>

To adjust the left angle simply tweak the border-left pixel amount. The larger the pixel amount, the more shallow the angle. The smaller the pixel amount, the steeper the angle.

Shallow Angle:

#parallelogram {
    width: 250px;
    height: 0;
    border-bottom: 100px solid red;
    border-left: 100px solid transparent;
    margin-left: 10px;
}
<div id="parallelogram"></div>

Steep Angle:

#parallelogram {
    width: 250px;
    height: 0;
    border-bottom: 100px solid red;
    border-left: 15px solid transparent;
    margin-left: 10px;
}
<div id="parallelogram"></div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I create a 'Parallelogram' shape in css with a straight side?

From Dev

parallelogram shape in css

From Dev

Can Window shape be a parallelogram

From Dev

How can I make a curvy line shape in CSS or Javascript

From Dev

How can I make a curvy line shape in CSS or Javascript

From Dev

How to transform an image in SVG (or CSS) into a non-parallelogram shape?

From Dev

How to create parallelogram shape background?

From Dev

How can I make a JSlider in a curve shape?

From Dev

How can I draw a shape in CSS?

From Dev

How to make this shape in CSS?

From Dev

How can I make touch events pass through a UIView (similar to pointer-events:none in CSS)?

From Dev

How do I create a parallelogram with CSS, but without transforms

From Dev

Can I make this shape as one solid object with css only?

From Dev

Can I make this shape as one solid object with css only?

From Dev

Can I make similar animation only with CSS3

From Dev

How do I make link the highlight link conform to CSS shape

From Dev

How to make css border shape

From Dev

How can I make this type of draw-able shape, android?

From Dev

How can I make a custom terminal cursor shape?

From Dev

How can I make a JavaScript code that recognizes strings of similar elements?

From Dev

How can I make something similar to Navigation pane in Outlook?

From Dev

How can I make an editor which is similar to Outlook editor?

From Dev

How can I make a similar application using street view?

From Dev

How can I draw a custom circle shape in CSS3?

From Dev

How can I create this shape using pure CSS3?

From Dev

How can I create a CSS "well" effect similar to bootstrap but deeper?

From Dev

How to make a parallelogram shaped vertex in JGraphx?

From Dev

How to make trapezoid and parallelogram in python using matplotlib

From Dev

How i can make a dynamic css class?

Related Related

  1. 1

    How do I create a 'Parallelogram' shape in css with a straight side?

  2. 2

    parallelogram shape in css

  3. 3

    Can Window shape be a parallelogram

  4. 4

    How can I make a curvy line shape in CSS or Javascript

  5. 5

    How can I make a curvy line shape in CSS or Javascript

  6. 6

    How to transform an image in SVG (or CSS) into a non-parallelogram shape?

  7. 7

    How to create parallelogram shape background?

  8. 8

    How can I make a JSlider in a curve shape?

  9. 9

    How can I draw a shape in CSS?

  10. 10

    How to make this shape in CSS?

  11. 11

    How can I make touch events pass through a UIView (similar to pointer-events:none in CSS)?

  12. 12

    How do I create a parallelogram with CSS, but without transforms

  13. 13

    Can I make this shape as one solid object with css only?

  14. 14

    Can I make this shape as one solid object with css only?

  15. 15

    Can I make similar animation only with CSS3

  16. 16

    How do I make link the highlight link conform to CSS shape

  17. 17

    How to make css border shape

  18. 18

    How can I make this type of draw-able shape, android?

  19. 19

    How can I make a custom terminal cursor shape?

  20. 20

    How can I make a JavaScript code that recognizes strings of similar elements?

  21. 21

    How can I make something similar to Navigation pane in Outlook?

  22. 22

    How can I make an editor which is similar to Outlook editor?

  23. 23

    How can I make a similar application using street view?

  24. 24

    How can I draw a custom circle shape in CSS3?

  25. 25

    How can I create this shape using pure CSS3?

  26. 26

    How can I create a CSS "well" effect similar to bootstrap but deeper?

  27. 27

    How to make a parallelogram shaped vertex in JGraphx?

  28. 28

    How to make trapezoid and parallelogram in python using matplotlib

  29. 29

    How i can make a dynamic css class?

HotTag

Archive