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

HTML

William van Voorbergen
William van Voorbergen
7,852 Points

When I make my screen smaller a white area will be added to my screen on the right when I scroll to the right

See this page: http://www.williamvv.com/portfolio-v2

When I make my screen smaller a white area will be added to my screen on the right when I scroll to the right.

Can somebody tell me what is happening over there when I make my screen smaller (mobile devices)?

Kind regards, William

William van Voorbergen
William van Voorbergen
7,852 Points

I really don't understand. When i'm viewing this on my mobile, it's working now (I changed the wrapper to 111% width). When i'm viewing on my browser and make it smaller it's that white area again on the right.

Can somebody explain what is going on?

1 Answer

Hey there, looked at the code and might have a solution. Your logo img with class "logo" is set to 400px so when the screen size is less than 400px you have this space, i fixed this by changing the width from 400px to 100%. Then i noticed that there was still a small space, caused by your span element in the header with id "typed" you need to set white-space to none, and i believe your problem will be solved. Site looks good by the way.

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

Yes, text isn't responsive where you mentioned.

William van Voorbergen
William van Voorbergen
7,852 Points

Thank you for your feedback. It worked!