[acf_txt1] Get container JS in SC


The Element Object | script
Edit get_container_w
const element = document.getElementById("container"); let text = "H: " + element.offsetHeight + " px | ";
text += "W: " + element.offsetWidth + " px"; document.getElementById("hw_size").innerHTML = text;

sc variables: h=”” w=”” mrg=”” pd=”” brd=”” bcol=””
The inside container background color is a css root color variable : root {--blue:lightblue;} #container {background-color:var(--blue);}


Direct code css: margin:auto & valign”
Vertical align

position:relative; top:50%; transform:translate(0,-50%);