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


This is what I did an I got the same result. Is it right

@media (min-width: 769px) {

.primary-col { display: inline-block; width: 400px; margin-right: 50px; } .secondary-col { display: inline-block; width: 400px; margin-right: 50px;

1 Answer

Aakash Srivastav
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Points

Hey cabbage one , what you have done was right few years ago when there were not such wide variety of viewports(phones , ipad , laptops and much more ) in market. But nowadays , this is a bad practice. But do you think it's responsive?
It's not responsive . It's doesn't matter whats the viewport is , both col's are bound to have the width of 400px which will look absurd. Instead , if you use precentage unit , the col's will adjust it's size as per viewport width which is responsive.
Percentages are responsive unit , that's why they are used everywhere as unit whereever it's possible .
So , use percentages , be responsive :)
Hope it helps :)