Adjusts style to use proper spans.