Fixes styling for non-vert elements.

Example of use in graph-sample/index.html.