user2054833 user2054833 - 1 year ago 96
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 Source

You should use px values instead of single.


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

Instead of:

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

Hope this helps!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download