r/reddithax • • May 05 '14

Reverse order of posts

Recently I've been trying to figure out exactly how flex works, and while experimenting with values I accidentally reversed the order of the posts (i.e. post number 25 is at the top, sticky is at the bottom). I feel that flex has a lot of potential for layout tricks that couldn't be done easily before.

Here's the code.

#siteTable {
    display: flex;
    flex-direction: column-reverse;	
}

.thing {
    width: 100%;	
}
10 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/silky_johnson May 06 '14

I think this should work:

.listing-page #siteTable {
    display: flex;
    flex-direction: column-reverse;	
}

.thing {
    width: 100%;	
}