javascript css id height code example
Example 1: javascript set div height
document.getElementById("myBtn").style.height = "50px";
Example 2: css height property
/* <length> values */
height: 300px;
height: 25em;
/* <percentage> value */
height: 75%;
/* Keyword values */
height: max-content;
height: min-content;
height: fit-content(20em);
height: auto;
/* Global values */
height: inherit;
height: initial;
height: unset;