add basic styles to handle margins and overflow.