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

JavaScript

Devin Scheu
Devin Scheu
66,191 Points

Club Course error (Mod Help)

In challenge task 3 of 3 in background color margin and padding in the club Javascript course it says to set the padding or margin (excuse my bad memory) to 10px 10px, but isn't that a little redundant, shouldn't it be just 10px. Sorry if i seem like i'm being picky just throwing out some constructive criticism.

4 Answers

James Barnett
James Barnett
39,199 Points

As a matter of syntax, both are correct. Also 10px 10px 10px 10px is equally valid.

However as a matter of style margin: 10px is often preferred over margin: 10px 10px.


However, I think since Joy Kesten's Treehouse Club series is meant as the very first introduction to CSS, I'm not sure the series as yet gotten to the point about coding style and readability.​

Devin Scheu
Devin Scheu
66,191 Points

Nice job on the course by the way Joy. I think it's the perfect introduction for beginners :)! Thumbs up from me!

Devin Scheu
Devin Scheu
66,191 Points

Yes, that is understandable. Just posting to make sure there wasn't an error.

Joy Kesten
STAFF
Joy Kesten
Treehouse Guest Teacher

Nice catch Devin Scheu and James Barnett! We fixed it!

Jay and I send you both massive high fives :hand:!!