Update the CSS example.
Ensure that width and height is only calculated once.