Calculate CSS percentage widths.