put long styles in a style element and append that to the head.