Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Issue with text overlapping in mobile browser

I have built a responsive grid layout for a website. it works fine in desktop browsers, but when I shrink the width of the browser, the first two bodies of text overlap with one another.

Ken Alger
Ken Alger
Treehouse Teacher

Do you have a code snippet or example you can share?

1 Answer

Brian MacDonald
Brian MacDonald
4,951 Points

Hello Hampton,

I assume when your browser shrinks, the overall container does as well to accommodate the new screen size. This could depend on how you have your code setup.

Without seeing your code here are some recommendations:

  • Check your structure overall containers, containers around the text areas etc
  • Check your margins and padding around the text
  • How are you displaying your content?

Let us know how it goes!