http://www.w3.org/TR/css3-values/#calc
I have been working on a library that converts some css3 methods into css2. One tricky part is math.. The proposal of css3's calc() method pretty much blew my mind..
I am able to add/subtract/divide/multiply pixels from ems or any other fixed unit, but I have no clue how you would add 10px to 60%.
Say you have variables setup: $width1 = 10px; and $width2 = 50%;
width: <?php echo $width1 + $width2; ?>;
Is there any way to perform this kind of math so that static width values can be applied to older browsers? Maybe using css expressions as a fallback?