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

Seth Warner
Seth Warner
1,878 Points

I'm building a little project site of mine, and for some reason I'm having a hard time with adjusting the madding and...

Sass & AngularJS:

I can't seem to adjust the Padding and Margin of the ng-binding. I gave that directive the id of "mainContent". Here is a link to the site, it's open source so feel free to take a peak.

  • Seth

https://ide.c9.io/thec0mposer/prototype

Seth Warner
Seth Warner
1,878 Points

Okay so I just gave the mainContent element, that was covering up the menu element, a z-index of -3 and it worked, yet the padding and margin is still a problem.

  • Seth

2 Answers

Seth Kroger
Seth Kroger
56,413 Points

You don't seem to be setting the padding or margins anywhere except for the menu. There's also a somewhat more serious issue that all your CSS/SCSS is wrapped up in media queries of min-width: 80em, meaning there's nothing but browser default styling on widths/devices smaller than that.

Seth Warner
Seth Warner
1,878 Points

Much appreciated Seth. I had already removed the padding and margin properties that would have altered it. I decided to just use a z-index number for now, to solve the issue I had at the time. The media query is not an issue, that is intentional, I'm exercising the skills I learned from Guil Hernandez Media lessons in the CSS basics course :)

  • Seth
Test Net
Test Net
21,518 Points

I would like to help you but I don't have an account with ide.c9 ....