+ 9
Can we change the height and width of both sides differently
eg. If I have a div Element I want the one side to have a size of 50px and the other side a size of 10px. b ____________ a |. | |___________| c d I want to change the size of a and c differently . So that a prism or triangle kind of shape appears .. How???
8 odpowiedzi
+ 7
Well I can't help you in this, but I recommend you to use SVG to draw. It would be easier
+ 6
@YafiWebDev That's not what I asked , I edited my question I think now its is more clear what I asked
+ 6
If it isn't there I think it should be added in next version of CSS , it will open a lot of possibilities for designing .
+ 5
I don't like working with SVG but I guess I have to ..
+ 2
You can't give width to sides, the width is the horizontal distance between the sides.
+ 2
I don't believe you could do that without SVG or canvas.
+ 1
me neither, haha
+ 1
You can do this by using skew property in CSS.