adds CSS classes for text alignment and floating