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

Won't set the left padding to 0

I'm trying to go on, but the challenge says "Did you remember to set the Left Padding to 0?"

Are you able to show us what you have? Otherwise all I can say is... did you?

Try:padding-left:0;

gallery {

float: left; margin: 0; left padding : 0 ; list-style: none; width:100% } Is what I have put in.

3 Answers

Ah yeh, missed the '-' between the two words and they should be around the other way, so try:

padding-left:0;

The formatting is similar for the other types that can have 'left', 'top' etc. You put in the element you want to modify and then its 'edge' if you like, so:

margin-left:10px; margin-bottom:5px;
padding-top:4px;
border-left:1px solid red;

etc.

gallery {

float: left; margin: 0; left-padding :0; list-style: none; width:100% I have this and left-padding is showing that its unrecognized

It should be: padding-left:0;

gallery {

float: left; margin: 0; padding-left:0; list-style: none; width:100% } Not working still when I have padding-left