Three column layout that becomes two columns over one full column on medium and small screens. All three columns become a full column on extra small screens.
34 |
35 |
36 |
37 |
Block 1 50% width on medium & small screens, 100% width on extra-small screens.
38 |
39 |
40 |
Block 2 50% width on medium & small screens, 100% width on extra-small screens.
41 |
42 |
43 |
Block 3 100% width on medium, small, and extra-small screens.
44 |
45 |
46 |
47 |
48 |
Brick 1 full width on small & medium screens, 50% width on all others.
49 |
50 |
51 |
Brick 2 full width on small & medium screens, 50% width on all others.
All By default, all paper pages are in the portrait orientation. All can be changed to a landscape orientation by adding the class landscape. An example might be:
24 | .paper > .page.letter.landscape
This will create a 11 x 8.5 inch paper page.
25 |
26 |
27 |
Supported Paper Sizes
28 |
29 |
30 |
.a0 (23.1 x 46.8 in)
31 |
.a1 (23.4 x 33.1 in)
32 |
.a2 (16.5 x 23.4 in)
33 |
.a3 (11.7 x 16.5 in)
34 |
.a4 (8.3 x 11.7 in)
35 |
.a5 (5.8 x 8.3 in)
36 |
.a6 (4.1 x 5.8 in)
37 |
.a7 (2.9 x 4.1 in)
38 |
.a8 (2.0 x 2.9 in)
39 |
.a9 (1.5 x 2.0 in)
40 |
.a10 (1 x 1.5 in)
41 |
.b5 (176 x 250 mm)
42 |
.c5 (162 x 229 mm)
43 |
.biz-card (2 x 3.5 in)
44 |
.gov-legal (8.5 x 13 in)
45 |
.gov-letter (10.5 x 8 in)
46 |
47 |
48 |
49 |
.edp (11 x 14 in)
50 |
.letter / .ansi-a (8.5 x 11 in)
51 |
.half-letter / .memo / .statement (5.5 x 8.5 in)
52 |
.legal (8.5 x 14 in)
53 |
.tabloid / .ansi-b (11 x 17 in)
54 |
.ledger (17 x 11 in)
55 |
.jr-legal (5 x 8 in)
56 |
.ansi-c (17 x 22 in)
57 |
.ansi-d (22 x 34 in)
58 |
.ansi-e (34 x 44 in)
59 |
.arch-a (9 x 12 in)
60 |
.arch-b (12 x 18 in)
61 |
.arch-c (18 x 24 in)
62 |
.arch-d (24 x 36 in)
63 |
.arch-e (36 x 48 in)
64 |
.arch-e1 (34 x 44 in)
65 |
66 |
67 |
68 |
69 |
70 |
71 |
Letter Page
72 |
8.5 x 11 in (216 x 279 mm)
73 |
74 |
75 |
Column Count Demo
76 |
77 |
This demo shows the pgrid layout, which is most useful for printed material. By default, there is one column when no other classes are applied to the pgrid wrapper.
78 |
79 |
Two Columns
80 |
This paragraph is split into two columns. Individual paragraphs or any other element can have specific column-count classes applied to them individually. If applied to the pgrid wrapper, all elements within it will be split into columns.
81 |
82 |
Three Columns
83 |
This is a three-column paragraph. Up to 12 columns are supported (cc1 - cc12). The column widths are automatically determined, when no column-width classes are applied. By default, there is 1em of gap spacing between columns.
84 |
85 |
Four Columns
86 |
87 |
This is the first paragraph, contained within a .pgrid.cc4 wrapper.
88 |
It makes sense that each of these paragraphs should take up one-fourth of the width of the page.
89 |
Even if there aren't 4 paragraphs within a .cc4 wrapper (there's 3 here), all content will still be divided up into 4 columns.
90 |
91 |
Five Columns
92 |
In the unordered list below, the 15 items should be split into 3 items per column.
93 |
94 |
Item 1
95 |
Item 2
96 |
Item 3
97 |
Item 4
98 |
Item 5
99 |
Item 6
100 |
Item 7
101 |
Item 8
102 |
Item 9
103 |
Item 10
104 |
Item 11
105 |
Item 12
106 |
Item 13
107 |
Item 14
108 |
Item 15
109 |
110 |
111 |
112 |
113 |
Business Card
114 |
115 |
116 |
Portrait Business Card
117 |
2in x 3.5in (51mm x 89mm)
118 |
119 |
120 |
121 |
Landscape Business Card
122 |
3.5in x 2in (89mm x 51mm)
123 |
124 |
125 |
126 |
127 |
Half Letter Page
128 |
5.5 x 8.5 in (140 x 216 mm)
129 |
130 |
131 |
Column Gap Demo
132 |
To apply a gap between columns, apply the class col-gap, which uses a CSS variable. Alternatively, we can add gaps that are multiples of the element's default font size, ranging from 2 to 6 times. This demo uses two columns.
133 |
2x Gap Width
134 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
135 |
3x Gap Width
136 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
137 |
4x Gap Width
138 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
139 |
5x Gap Width
140 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
141 |
6x Gap Width
142 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
143 |
144 |
145 |
146 |
A4 Page
147 |
8.3 x 11.7 in (210 x 297 mm)
148 |
149 |
150 |
Column Width Demo
151 |
In multi-column layouts, we may need to make columns wider or narrower than the default. There are two ways to do this: either CM or EM based widths.
152 |
2cm / 5em Column Widths
153 |
154 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
155 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
156 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
157 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
158 |
159 |
4cm / 10em Column Widths
160 |
161 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
162 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
163 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
164 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
165 |
166 |
6cm / 15em Column Widths
167 |
168 |
HI. I'm a c-span paragraph. I go all the way across.
169 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
170 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
171 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
172 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
173 |
174 |
8cm / 20em Column Widths
175 |
176 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
177 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
178 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
179 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
180 |
181 |
12cm / 25em Column Widths
182 |
183 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
184 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
185 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
186 |
Lorem ipsum no facer prompta vim, movet ubique qui ei. Pea mei nulla scribentur liberavisse. Discere suavitate nam ad.
REQUIRED SCRIPT. The following javascript is required and needs to be placed before the closing body tag:
41 |
source/methods/js/poly-grid.js
42 |
The javascript automatically inserts the necessary shape elements that will be floated left and right within each shape grid item.
43 |
44 |
45 |
Constructing Grids
46 |
47 |
SIZES. Grid shape items have pre-defined widths and heights that are proportionate to the height of the viewport. For example, if we want shape items to occupy 25% of the height of the screen, we would apply the class fourths. Use any of the following size classes:
GAPS. Gap spacing can be added between items for several shape grids. Simply add the class gaps to the polygrid wrapper. In the example below, we have applly gaps to a sixth triangle polygrid:
.gaps.polygrid triangle.sixths
59 |
60 |
1
61 |
2
62 |
3
63 |
4
64 |
65 |
66 |
REVERSE. We can reverse the flow of grid items from last to first by applying the class reverse. In the example below, we have a reversed packed triangle grid:
.reverse.polygrid.triangle.packed.sixths.gaps
67 |
68 |
1
69 |
2
70 |
3
71 |
4
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
Circle Fourths PolyGrid w/ Gaps
80 |
In the example below, we wrap a circle fourths polygrid (with gap spacing) within a container.
81 |
82 |
83 |
84 |
Let your hopes, not your hurts, shape your future.
85 |
86 |
87 |
Strategy is about shaping the future.
88 |
89 |
90 |
We shape our buildings; thereafter they shape us.
91 |
92 |
93 |
If you change the way you look at things, the things you look at change.
94 |
95 |
96 |
Every day do something that will inch you closer to a better tomorrow.
97 |
98 |
99 |
In the long run, we shape our lives, and we shape ourselves
100 |
101 |
102 |
It takes a big heart to shape little minds.
103 |
104 |
105 |
The name we give to something shapes our attitude toward it.
106 |
107 |
108 |
Everything has shape, if you look for it. There is no escape from form.
109 |
110 |
111 |
The only way to predict the future is to have power to shape the future.
112 |
113 |
114 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
115 |
116 |
117 |
Human nature is like water. It takes the shape of its container.
118 |
119 |
120 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
PACKED Triangle Thirds PolyGrid w/ Gaps
129 |
In the example below, we wrap a triangle thirds polygrid (with gap spacing) within a container.
130 |
131 |
132 |
133 |
Let your hopes, not your hurts, shape your future.
134 |
135 |
136 |
Strategy is about shaping the future.
137 |
138 |
139 |
We shape our buildings; thereafter they shape us.
140 |
141 |
142 |
If you change the way you look at things, the things you look at change.
143 |
144 |
145 |
Every day do something that will inch you closer to a better tomorrow.
146 |
147 |
148 |
In the long run, we shape our lives, and we shape ourselves
149 |
150 |
151 |
It takes a big heart to shape little minds.
152 |
153 |
154 |
The name we give to something shapes our attitude toward it.
155 |
156 |
157 |
Everything has shape, if you look for it. There is no escape from form.
158 |
159 |
160 |
The only way to predict the future is to have power to shape the future.
161 |
162 |
163 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
164 |
165 |
166 |
Human nature is like water. It takes the shape of its container.
167 |
168 |
169 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
PACKED & REVERSED Rhombus Fifths PolyGrid
178 |
In the example below, we wrap a reversed rhombus thirds polygrid within a container.
179 |
180 |
181 |
182 |
183 |
Let your hopes, not your hurts, shape your future.
184 |
185 |
186 |
Strategy is about shaping the future.
187 |
188 |
189 |
We shape our buildings; thereafter they shape us.
190 |
191 |
192 |
If you change the way you look at things, the things you look at change.
193 |
194 |
195 |
Every day do something that will inch you closer to a better tomorrow.
196 |
197 |
198 |
In the long run, we shape our lives, and we shape ourselves
199 |
200 |
201 |
It takes a big heart to shape little minds.
202 |
203 |
204 |
The name we give to something shapes our attitude toward it.
205 |
206 |
207 |
Everything has shape, if you look for it. There is no escape from form.
208 |
209 |
210 |
The only way to predict the future is to have power to shape the future.
211 |
212 |
213 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
214 |
215 |
216 |
Human nature is like water. It takes the shape of its container.
217 |
218 |
219 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
PACKED Hexagon Thirds PolyGrid
228 |
In the example below, we have a hexagon thirds polygrid within a container.
229 |
230 |
231 |
232 |
233 |
Let your hopes, not your hurts, shape your future.
234 |
235 |
236 |
Strategy is about shaping the future.
237 |
238 |
239 |
We shape our buildings; thereafter they shape us.
240 |
241 |
242 |
If you change the way you look at things, the things you look at change.
243 |
244 |
245 |
Every day do something that will inch you closer to a better tomorrow.
246 |
247 |
248 |
In the long run, we shape our lives, and we shape ourselves
249 |
250 |
251 |
It takes a big heart to shape little minds.
252 |
253 |
254 |
The name we give to something shapes our attitude toward it.
255 |
256 |
257 |
Everything has shape, if you look for it. There is no escape from form.
258 |
259 |
260 |
The only way to predict the future is to have power to shape the future.
261 |
262 |
263 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
264 |
265 |
266 |
Human nature is like water. It takes the shape of its container.
267 |
268 |
269 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
PACKED Hourglass Thirds PolyGrid
278 |
In the example below, we have a hourglass thirds polygrid within a container.
279 |
280 |
281 |
282 |
283 |
Let your hopes, not your hurts, shape your future.
284 |
285 |
286 |
Strategy is about shaping the future.
287 |
288 |
289 |
We shape our buildings; thereafter they shape us.
290 |
291 |
292 |
If you change the way you look at things, the things you look at change.
293 |
294 |
295 |
Every day do something that will inch you closer to a better tomorrow.
296 |
297 |
298 |
In the long run, we shape our lives, and we shape ourselves
299 |
300 |
301 |
It takes a big heart to shape little minds.
302 |
303 |
304 |
The name we give to something shapes our attitude toward it.
305 |
306 |
307 |
Everything has shape, if you look for it. There is no escape from form.
308 |
309 |
310 |
The only way to predict the future is to have power to shape the future.
311 |
312 |
313 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
314 |
315 |
316 |
Human nature is like water. It takes the shape of its container.
317 |
318 |
319 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
PACKED Chevron Fifths PolyGrid w/ Gaps
328 |
329 |
330 |
331 |
Let your hopes, not your hurts, shape your future.
332 |
333 |
334 |
Strategy is about shaping the future.
335 |
336 |
337 |
We shape our buildings; thereafter they shape us.
338 |
339 |
340 |
If you change the way you look at things, the things you look at change.
341 |
342 |
343 |
Every day do something that will inch you closer to a better tomorrow.
344 |
345 |
346 |
In the long run, we shape our lives, and we shape ourselves
347 |
348 |
349 |
It takes a big heart to shape little minds.
350 |
351 |
352 |
The name we give to something shapes our attitude toward it.
353 |
354 |
355 |
Everything has shape, if you look for it. There is no escape from form.
356 |
357 |
358 |
The only way to predict the future is to have power to shape the future.
359 |
360 |
361 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
362 |
363 |
364 |
Human nature is like water. It takes the shape of its container.
365 |
366 |
367 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
Octagon Fourths PolyGrid w/ Gaps
376 |
377 |
378 |
379 |
Let your hopes, not your hurts, shape your future.
380 |
381 |
382 |
Strategy is about shaping the future.
383 |
384 |
385 |
We shape our buildings; thereafter they shape us.
386 |
387 |
388 |
If you change the way you look at things, the things you look at change.
389 |
390 |
391 |
Every day do something that will inch you closer to a better tomorrow.
392 |
393 |
394 |
In the long run, we shape our lives, and we shape ourselves
395 |
396 |
397 |
It takes a big heart to shape little minds.
398 |
399 |
400 |
The name we give to something shapes our attitude toward it.
401 |
402 |
403 |
Everything has shape, if you look for it. There is no escape from form.
404 |
405 |
406 |
The only way to predict the future is to have power to shape the future.
407 |
408 |
409 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
410 |
411 |
412 |
Human nature is like water. It takes the shape of its container.
413 |
414 |
415 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
Plus Fourths PolyGrid w/ Gaps
424 |
425 |
426 |
427 |
Let your hopes, not your hurts, shape your future.
428 |
429 |
430 |
Strategy is about shaping the future.
431 |
432 |
433 |
We shape our buildings; thereafter they shape us.
434 |
435 |
436 |
If you change the way you look at things, the things you look at change.
437 |
438 |
439 |
Every day do something that will inch you closer to a better tomorrow.
440 |
441 |
442 |
In the long run, we shape our lives, and we shape ourselves
443 |
444 |
445 |
It takes a big heart to shape little minds.
446 |
447 |
448 |
The name we give to something shapes our attitude toward it.
449 |
450 |
451 |
Everything has shape, if you look for it. There is no escape from form.
452 |
453 |
454 |
The only way to predict the future is to have power to shape the future.
455 |
456 |
457 |
Colors answer feeling in man; shapes answer thought; and motion answers will.
458 |
459 |
460 |
Human nature is like water. It takes the shape of its container.
461 |
462 |
463 |
Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.
Building on Demo 2, we now do the following: push every second element from the bottom, pull every third element from the top, push every fourth element from the left, and pull every fifth element from the right.
144 |
145 |
146 |
147 |
148 |
149 |
150 |
Winter DIV
151 |
I am a normal div element. Using B3Grid, my width is 25% on devices over 480px, and 100% on devices under 480px.
152 |
153 |
154 |
155 |
Spring Article
156 |
This is a springtime article element, and I have no set width.
157 |
158 |
159 |
160 |
Summer Surf Section
161 |
This is a sufin' summery section element.
162 |
163 |
164 |
165 |
Autumn Article
166 |
Autumn is my favorite season. [end of article]
167 |
168 |
169 |
I am an impactful blockquote block.
170 |
171 |
PARAGRAPH. I'm just a plain 'ol paragraph element. I am a pool of words.