Implement Box-model Computations

Since last PR, I've fixed errors and implemented percent widths/margins/padding.