title: CSS3 calc with variables
body: <p>I am calculating some widths and margins depending on the number of childs.</p>
  
  <p>Is it possible in css3 to have a variable like:</p>
  
  <pre><code>.someClass {
     width: -moz-calc(nrOfChilds * 80px);
  }
  </code></pre>
  
  <p>Some other classes I got are written as follows:</p>
  
  <pre><code>.anotherClass:nth-child(n) {
     margin-left: -moz-calc(n * 50px);
  }
  </code></pre>
  
  <p>Is it possible to use some variables like n or nrOfChilds? At the moment I declare my second example several times and change the first manually?
  I know javascript is a solution to this. But is there a native css3 solution for this?</p>
  
  <p>/Kind regards </p>
  
  <p>Christian</p>