1. Home
  2. Css
  3. Calc

Calculates property value. You can mix different types of measurement units in the calculation like %, em, cm, in, mm, pc, pt, px, rem.

#css
.my-selector{
    width: 100%; /* you can use fallback for the older browsers */
    width: calc(100% - 320px);
}
copy
Full Css cheatsheet