calc is used to performs a calculation to be used as the property value.
If we want an element to have a the full width of the screen minus 100px margins we could write:
1 2 3 |
#div { width: calc(100% - 100px); } |
calc is used to performs a calculation to be used as the property value.
If we want an element to have a the full width of the screen minus 100px margins we could write:
1 2 3 |
#div { width: calc(100% - 100px); } |