Closed
Conversation
Setting gap to a non-zero value, e.g. 40 will add 20px to the left and
right of each column as additional gap. This is done by setting the
margin-{left,right} css style. Columns themselves are resized to width - gap.
Owner
|
column widths need to stay as % when the divs are created. this way the container can be resized and the columns behave sanely. instead of baking in the gap into the width/margin, wrapping content automatically with a spacing div as described here: http://stackoverflow.com/questions/11882337/how-to-increase-padding-in-jquery-columnizer-with-fixed-number-of-columns-with would work better |
|
@adamwulf Thanks for the link. Adding it to the README as a hint to mimic CSS3 multi-column's column-gap would be helpful. For the simple case outlined in the link above, you can mimic a column-gap of 32px in a two column config as so: .column.first > * {
padding-right: 16px;
}
.column.last > * {
padding-left: 16px;
} |
Closed
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.
This is a simple implementation for adding gaps to the left and the right of columns.
Setting gap to a non-zero value, e.g. 40 will add 20px to the left and
right of each column as additional gap. This is done by setting the
margin-{left,right} css style. Columns themselves are resized to width - gap.