This article explains it all. Take a look and see what CSS3 calc() can do. Pretty nifty stuff!

Firefox 4: CSS3 calc()