Skip to content

Column Ordering#5

Open
HumanAgainstMachine wants to merge 3 commits intomourner:gh-pagesfrom
HumanAgainstMachine:gh-pages
Open

Column Ordering#5
HumanAgainstMachine wants to merge 3 commits intomourner:gh-pagesfrom
HumanAgainstMachine:gh-pages

Conversation

@HumanAgainstMachine
Copy link

Hello,

the idea is as simple as useful, adding position:relative; to .col class, nothing changes until we use left and right properties for non-mobile layouts.

In this way we can order columns inside a row,
moving them from left to right by left: a%; where a is the needed percentage. Similarly,
moving them from right to left by right: b%; where b is the needed percentage.

The example col_ordering.html shows the case where we want the sidebar on the left, while still remaining in the bottom of the stack for mobile layout.

Ordering cols inside a row is made with left: and right: css properties and correct percentages
@mourner
Copy link
Owner

mourner commented Apr 14, 2016

I'm not sure whether this should be added as an example to the repo, but it's a neat idea!

@HumanAgainstMachine
Copy link
Author

Hello and thank you for appreciating the idea.

The idea come from my need to have your template with the sidebar on the left, so the example is my first result.

I have a more general example I can show you: 3 cols in a row and their 6 permutations.

If you think I can help, I will be happy to collaborate.

Ezio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants