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


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

Lauren Waller Thanks, that makes sense.