Adapt different css styles for layout