Jak dodać wiele stylu CSS w JavaScript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
//use template literals
document.getElementById("myElement").style.cssText = `
display: block;
position: absolute;
`;
BlueMoon