+ 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???

23rd Mar 2017, 5:12 AM
Utkαrsh
Utkαrsh - avatar
8 Réponses
+ 7
Well I can't help you in this, but I recommend you to use SVG to draw. It would be easier
23rd Mar 2017, 6:36 AM
Prabhakar Dev
Prabhakar Dev - avatar
+ 6
@YafiWebDev That's not what I asked , I edited my question I think now its is more clear what I asked
23rd Mar 2017, 6:31 AM
Utkαrsh
Utkαrsh - avatar
+ 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 .
23rd Mar 2017, 6:35 AM
Utkαrsh
Utkαrsh - avatar
+ 5
I don't like working with SVG but I guess I have to ..
23rd Mar 2017, 7:22 AM
Utkαrsh
Utkαrsh - avatar
+ 2
You can't give width to sides, the width is the horizontal distance between the sides.
23rd Mar 2017, 5:32 AM
YafiWebDev
YafiWebDev - avatar
+ 2
I don't believe you could do that without SVG or canvas.
23rd Mar 2017, 6:53 AM
YafiWebDev
YafiWebDev - avatar
+ 1
me neither, haha
23rd Mar 2017, 7:32 AM
YafiWebDev
YafiWebDev - avatar
+ 1
You can do this by using skew property in CSS.
1st Apr 2017, 5:21 PM
Naeem Rind
Naeem Rind - avatar