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

What is the benefit of using the order property to rearrange columns versus having the columns ordered in the html?

Doesn't it create confusion if you have the columns ordered one way in the HTML, but then rearrange them with a property in the CSS?

Lauren Waller
Lauren Waller
10,085 Points

For me, the benefit is to be able to rearrange it from mobile to larger desktops. Like on mobile you may want the column with the picture in it to display first but on a larger screen you would probably want that column in the middle. So you write the HTML for mobile first and then in larger screens use the order property to change the first column to be displayed second. Hope that helps!

2 Answers

It's quicker. More flexibility.

Lauren Waller Thanks, that makes sense.