css take height with calc code example
Example 1: css calc height
div {
width: calc(100% - 100px);
}
Example 2: calc css float to procent
padding-bottom: calc(100% * 9/21);
div {
width: calc(100% - 100px);
}
padding-bottom: calc(100% * 9/21);