total width based on box-sizing calculator code example Example: border-box css #example1 { box-sizing: border-box; }