C
C
ChemAli2011-08-11 16:36:16
css
ChemAli, 2011-08-11 16:36:16

Is it possible to do this with CSS3?

I tried to do it with transform: skew(x,y), but they can't be combined and I got only rhombuses with parallelograms. It is necessary to get a trapezoid from a rectangle with given angles:
Snymok_ekrana_2011-08-11_v_17.30.35.png
Long life and a good wife to someone who will tell you how to do this without transformations on the server side.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tFirma, 2011-08-11
@ChemAli

For webkit, you can do this: -webkit-transform: perspective(200px) rotateY(45deg);
They write that 3D transformations are not supported in other browsers: www.w3schools.com/cssref/css3_pr_transform.asp

T
tFirma, 2011-08-11
@tFirma

And if you draw two rectangles and move them in opposite directions?

A
Anatoly, 2011-08-11
@taliban

Maybe you should use canvas?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question