Column Ordering#5
Open
HumanAgainstMachine wants to merge 3 commits intomourner:gh-pagesfrom
HumanAgainstMachine:gh-pages
Open
Column Ordering#5HumanAgainstMachine wants to merge 3 commits intomourner:gh-pagesfrom HumanAgainstMachine:gh-pages
HumanAgainstMachine wants to merge 3 commits intomourner:gh-pagesfrom
HumanAgainstMachine:gh-pages
Conversation
Ordering cols inside a row is made with left: and right: css properties and correct percentages
Owner
|
I'm not sure whether this should be added as an example to the repo, but it's a neat idea! |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.