I calculate some widths and margins depending on the number of children.
Is it possible in css3 to have a variable of type:
.someClass { width: -moz-calc(nrOfChilds * 80px); }
Some other classes that I got are written as follows:
.anotherClass:nth-child(n) { margin-left: -moz-calc(n * 50px); }
Can I use some variables like n or nrOfChilds? At the moment, I declare my second example several times and manually change it manually? I know javascript is a solution. But is there a native css3 solution for this?
/Yours faithfully
Christian
source share