Fixes element markup and style. Also removes whitespace