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 trialv s
610 PointsPadding 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%; }
}
1 Answer
Julien Rotundo
10,018 PointsYou 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.
eva sokolovsky
8,111 Pointseva sokolovsky
8,111 PointsCan you please add a full code? I tried to check, it seems working. But maybe the problem is deeper/