Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

How to fix responsive issues on landing page

Hello guys,

Please visit the landing page I built at:

http://thestyleforce.com/tune-my-profile

When you resize the browser window you will see that the 'Tune My Profile' text goes below the header and looks crappy. Is there anyway I can stop it from being responsive? I just want it to stay put (so to say).

Thanks for all your help!

2 Answers

You can put this css rule on your h1 element:

white-space: nowrap;

I would also make the font-size smaller at certain breakpoints with the use of media queries. For example make it 90px at max-width: 1200px and 80px at max-width: 960px and so on. It takes a bit of tweaking to find out the best font-size at certain breakpoints, but that's how I would tackle this problem.

Thank you Erwin!