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.

CSS CSS Basics (2014) Enhancing the Design With CSS Adjusting the Layout with Media Queries

Padding not working in primary and secondary content , it is still showing 50px in left and right when i resize

What is the problem in this 20px of padding is not applying after resizing????

@media (max-width: 768px) { .primary-content, .secodary-content { width: 90%; padding: 20px; border: none; }

.main-header { max-hieght: 380px; padding: 50px 25px 0; }

.title { font-size: 1.3rem; border: none; }

h1 { font-size: 5rem; line-height:1.1; } .arrow { display: none; } .intro { font-size: 1rem; }

.resorts, .tips { float: none; width: 100%; }

}

Can you please add a full code? I tried to check, it seems working. But maybe the problem is deeper/

1 Answer

Julien Rotundo
Julien Rotundo
10,018 Points

You have a couple typos which would prevent the styles from working if different from the spelling in your html. .secondary is spelled wrong. Also, height is spelled wrong on your second line.