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 trialMajid Mokhtari
10,506 Pointsresponsive.css
my responsive.css file has no error and its included along with other files, but when I open my website on my iphone 5 still does not adjust the screen, anybody knows whats going on?
2 Answers
I'm Dean Carter
3,383 PointsAgreed! We need more detail (the more the better) in order to accurately assist.
However, (with the sparse detail you supplied) the issue could be either that the media queries in responsive.css file are not set up for the correct iPhone viewport sizing or your responsive.css is not being referenced correctly in your code.
Majid Mokhtari
10,506 Pointshere is the code:
@media screen and (min-width: 480px) {
#gallery li { width:28.3333%; }
#gallery li:nth-child(4n) { clear: left; } }
Tom Bedford
15,645 PointsTom Bedford
15,645 PointsHi Majid, people won't be able to help you unless you post your code. CodePen is usually the easiest method for sharing your HTML and CSS to demonstrate a problem.