1. Home
  2. Css
  3. Calc
#css

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

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