Moved some common styles into css classes

Makes them more maintainble for future. Also styles for class names can
be used to pull out similar elements in jQuery.