Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

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
seal-mask
.a{fill-rule:evenodd;}techdegree
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,626 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 :)