I'm having a problem with setting multiple values on the same css property in Javascript. The problem is that I can't make it so both of the properties get rendered but instead the last line gets executed.
//Map is a variable linked to an element
map.style.cssText = "transform: rotate(90deg); transform: translate(-50%, -50%);";
color:red; color: blue- the same applies totransform-"transform: rotate(90deg) translate(-50%, -50%);"would work - ormap.style.transform="rotate(90deg) translate(-50%, -50%)"transform: rotate(90deg); transform: translate(-50%, -50%);totransform: rotate(90deg) translate(-50%, -50%);should fix this :)