Como descobrir o quão grande é a largura de elementos no CSS


<div>
  To find the total width of an element use the following formula: width +
  left padding + right padding + left border + right border + left margin 
  + right margin. This element has a width of 350px based on the fomula.
</div>


<style>
  div {
    width: 320;
    padding: 10px;
    border: 5px;
    margin: 0px;
  }
</style>
Bloody Baboon