tweak styles to better handle textual elements