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 trialDAVID OLSEN
Front End Web Development Techdegree Graduate 14,295 PointsSmaller screen size media queries inheriting padding, margin, etc. from larger screen size.
Working on media queries for different display widths. When I check things out in Chrome Developer Tools it appears that my media queries are inheriting padding, margins, etc. from the largest media query. In my smaller media queries, I have no way of changing the inherited properties to get my layout right. Any suggestions? Thx!!!
1 Answer
Shaun Kelly
35,560 PointsHi David,
Just remove the margins and padding on smaller display widths. This may help: https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Abdullah Howard
11,955 PointsAbdullah Howard
11,955 PointsCould you post a snapshot of your code, or even better link it in the comments? It'll help with debugging it