“The calc() function is a CSS function that allows you to calculate a value based on other values. For example, you can use it to calculate the width of the viewport minus the margin of an element:”
.example {
margin: 10px;
width: calc(100% - 20px);
}
is the width of the viewport by default 100% ?
and shouldn’t the 3rd line of code be
width: calc(100% - 10px);
so width of viewport subtracted from the margin that is 10px ?