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 trialstephanie harrison roberts
1,713 PointsHello! my images are not showing at 100%, after writing a media query to allow this. what have I done wrong?!?
This is my media query, its the tips and resorts im trying to get to show at 100% when the screen size is reduced......help!!
@media (max-width: 768px) { .primary-content, .secondary-content { width: 100%; padding: 20px; border: none; }
.main-header { max-height: 380px; padding: 50px 25px; }
.title { font-size: 1.3em; border:none; }
h1 { font-size: 5rem; line-height: 1.1; }
.arrow { display: none; }
.intro { font-size: 1rem; }
.resorts, .tips { float: none; width: 100%;
} .main-footer { padding: 20px 0; }
}
2 Answers
tobiastrinkler
Full Stack JavaScript Techdegree Student 16,538 PointsHi stephanie,
I tried to use your CSS media query for my code and it works totally fine. Is it possible that you might forget to add some classes to your HTML?
stephanie harrison roberts
1,713 Pointsthank you for the reply......not sure what you mean...sorry, very new to this!
stephanie harrison roberts
1,713 Pointsme being thick....! yes, I have the classes in the html!
stephanie harrison roberts
1,713 Pointsstephanie harrison roberts
1,713 PointsP.S They seem to be stuck on the left of the screen leaving a large margin on the right.....