Move more formatting from JS to CSS.