Last active
December 25, 2019 16:58
-
-
Save JayHoltslander/9998612 to your computer and use it in GitHub Desktop.
Split a paragraph into multi columns like a newspaper with this CSS3. Text will automatically fill the columns. You can use this within a single Bootstrap column to simulate multi-column layout without needing to add extra divs for extra columns.
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
p.4columns { | |
-webkit-column-count: 4; /* Chrome, Safari, Opera */ | |
-moz-column-count: 4; /* Firefox */ | |
column-count: 4; | |
-webkit-column-gap: 20px; /* Chrome, Safari, Opera */ | |
-moz-column-gap: 20px; /* Firefox */ | |
column-gap: 20px; | |
column-rule-color: #ccc; /* Optional */ | |
column-rule-style:solid; /* Optional */ | |
column-rule-width: 1px; /* Optional */ | |
text-align: justify; /* Optional */ | |
} | |
p.3columns { | |
-webkit-column-count: 3; /* Chrome, Safari, Opera */ | |
-moz-column-count: 3; /* Firefox */ | |
column-count: 3; | |
-webkit-column-gap: 20px; /* Chrome, Safari, Opera */ | |
-moz-column-gap: 20px; /* Firefox */ | |
column-gap: 20px; | |
column-rule-color: #ccc; /* Optional */ | |
column-rule-style:solid; /* Optional */ | |
column-rule-width: 1px; /* Optional */ | |
text-align: justify; /* Optional */ | |
} | |
p.2columns { | |
-webkit-column-count: 2; /* Chrome, Safari, Opera */ | |
-moz-column-count: 2; /* Firefox */ | |
column-count: 2; | |
-webkit-column-gap: 20px; /* Chrome, Safari, Opera */ | |
-moz-column-gap: 20px; /* Firefox */ | |
column-gap: 20px; | |
column-rule-color: #ccc; /* Optional */ | |
column-rule-style:solid; /* Optional */ | |
column-rule-width: 1px; /* Optional */ | |
text-align: justify; /* Optional */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Jay, sorry for stupid question here, i want ask how can we put images in that pargraf but put it in the right have been try it using float, align:right but the images still in the left, Thanks