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

General Discussion

Rolf Willems
Rolf Willems
2,249 Points

Not adjusting size at mobile site

Hey! I followed the course 'how to make a website' from Nick Pettit, and in workspaces my site just smoothly adjusts to a desktop or mobile version. Also using the direct host adress it works just fine, but when i visit it via my domain name it fails? Do you think this is because of my domain name? I regestered it at dot.tk because they are free and it would be nice for testing, and it is just a domain to domain adress, no dns or whatever. Do you think it is the fault of dot.tk or from my host? Thanks in advance!

Rolf

3 Answers

The host and domain name don't have an effect on the css . Maybe your code is not the same, maybe you didn't copy everything.

Rolf Willems
Rolf Willems
2,249 Points

Well, like i said, connecting directly to the host does give me the mobile resolutions, while connecting via the external domain name doesn't

Conrad Cortes
Conrad Cortes
8,418 Points

Did you make sure to use the viewport meta tag?

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

Make sure you put that in the head.