user2054833 user2054833 - 17 days ago 5
CSS Question

Invalid Property when applying combine transformation

When I use the tranform property with one transformation everything works fine but I get 'invalid property' when they are combined. I'm testing with Opera

Does not work

transform: translate(300,0px) rotate(90deg);


Does work

transform: translate(300,0px);

Answer

You should use px values instead of single.

Do:

transform: translate(300px, 0px) rotate(90deg);

Instead of:

transform: translate(300, 0px) rotate(90deg);

Hope this helps!

Comments