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

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.