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.

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.