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

Smaller 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!!!

Could you post a snapshot of your code, or even better link it in the comments? It'll help with debugging it

1 Answer

Hi David,

Just remove the margins and padding on smaller display widths. This may help: https://www.w3schools.com/css/css_rwd_mediaqueries.asp