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

What do you think of this solution?

I just renamed two classes that targets paragraphs (.primary and .secondary) and this is what I did:

.primary {

width: 500px; display: inline-block; padding: 20px; vertical-align: top;

}

.secondary {

width: 500px; display: inline-block; padding: 20px; vertical-align: top;

3 Answers

D.R.Y. ! :) .primary, .secondary { width: 500px; display: inline-block; padding: 20px; vertical-align: top; }

But why not use the .col class already in place ?

What is your question? :)

I'd just love to hear any advice on how I could do it better or is this good practice. :)

Ahh, ok. Thanks a lot Emmanuel!