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

Nenad Marinkovic
Nenad Marinkovic
13,310 Points

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

Emmanuel Molina
Emmanuel Molina
9,268 Points

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 ?

Herman Wikner
Herman Wikner
3,303 Points

What is your question? :)

Nenad Marinkovic
Nenad Marinkovic
13,310 Points

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

Nenad Marinkovic
Nenad Marinkovic
13,310 Points

Ahh, ok. Thanks a lot Emmanuel!