-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1742 lines (1716 loc) · 110 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Kntnt CSS Framework</title>
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
<link rel="stylesheet" href="normalize.css/normalize.css">
<link rel="stylesheet" href="kntnt-css-framework/constants.css">
<link rel="stylesheet" href="kntnt-css-framework/colors.css">
<link rel="stylesheet" href="kntnt-css-framework/defaults.css">
<link rel="stylesheet" href="kntnt-css-framework/normalize.css">
<link rel="stylesheet" href="kntnt-css-framework/page-layout.css">
<link rel="stylesheet" href="kntnt-css-framework/page-styles.css">
<link rel="stylesheet" href="kntnt-css-framework/content.css">
<link rel="stylesheet" href="kntnt-css-framework/colors.css">
<link rel="stylesheet" href="kntnt-css-framework/positioning.css">
<link rel="stylesheet" href="kntnt-css-framework/faux-columns.css">
<link rel="stylesheet" href="kntnt-css-framework/flexbox-columns.css">
<link rel="stylesheet" href="kntnt-css-framework/utilities.css">
<link rel="stylesheet" href="kntnt-css-framework/wordpress.css">
<link rel="stylesheet" href="styles.css">
<script src="https://kit.fontawesome.com/00af4a7a7f.js" crossorigin="anonymous"></script>
</head>
<body>
<header class="shadow sticky">
<div id="topbar">
<div>
<a href="https://github.com/Kntnt/kntnt-css-framework">Download the code from GitHub</a>
</div>
</div>
<div id="header">
<div>
<figure>
<a href="https://github.com/Kntnt/kntnt-css-framework"><img class="no-shadow" srcset="images/logo-1x.png, images/logo-2x.png 2x, images/logo-3x.png 3x" src="images/logo-3x.png" alt="Kntnt logo" height="60"></a>
</figure>
<nav>
<ul>
<li>
<a href="https://github.com/Kntnt/kntnt-css-framework">GitHub Project</a>
</li>
<li>
<a href="https://github.com/Kntnt/kntnt-css-framework/blob/main/examples/layout-example.html">Layout example</a>
</li>
<li>
<a href="https://github.com/Kntnt/kntnt-css-framework/blob/main/examples/content-example.html">Content example</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
<div>
<aside class="panel alert-dark">
<div>
<p>Please, notice that this documentation is far from complete.<br>
(By the way, this is an example of an alert panel.)</p>
</div>
</aside>
</div>
<main>
<article id="article">
<div>
<h1><span class="kicker">For developers:</span> Kntnt CSS Framework <span class="deck">— A foundation for modern web sites</span></h1>
<p class="lead">This is the lead paragraph. It should summarize the content of the article without revealing too much. The purpose is to give the reader enough so she can decide if the article is relevant and to entice her to read on.</p>
<div class="wide byline">
<time datetime="2021-03-28">March 28, 2021</time> <a href="https://github.com/TBarregren">Thomas Barregren</a>
</div>
<p>This is the very first paragraph in the body text. It should not be a headline, an image, a table or the like, but just a piece of text. The reason is that this comes directly after the byline. It simply does not look good with anything other than text directly after the byline. A single piece looks best. Then a subheading.</p>
<h2>What is Kntnt CSS Framework</h2>
<p>Kntnt CSS Framework (KCF) is a comprehensive set of stylesheets that make it easy to build a website relatively quickly by chiefly overriding default values and using classes.</p>
<p>The framework can be used with <a href='https://oxygenbuilder.com/'>Oxygen Builder</a> for <a href='https://wordpress.org/'>WordPress</a>. But there is no dependency on either tool, so it works perfectly well with other tools or for handwritten code.</p>
<h2>Background</h2>
<p>There are many CSS frameworks out there. The arguably most known is <a href='https://getbootstrap.com/'>Bootstrap</a> – an amazing toolkit “featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins.” Two other full-featured CSS frameworks are <a href='https://get.foundation'>Foundation</a> and <a href='https://materializecss.com/'>Materialize</a>. Two leaner frameworks worth mentioning are <a href='https://bulma.io/'>Bulma</a> and <a href='https://purecss.io/'>Pure.css</a>. They are all great.</p>
<p>But they all focus on grids, buttons and forms – the stuff needed to build an excellent user interface. That’s not what we need at Kntnt.</p>
<h2>Content – not grids</h2>
<aside class="right margin panel color-primary-light">
<div>
<h2>Developed by</h2>
<p>Kntnt CSS Framework is developed by <a href="https://www.kntnt.se">Kntnt</a> – a Swedish sales, marketing and web technology agency.</p>
</div>
</aside>
<p>KCF is developed by <a href='https://www.kntnt.se'>Kntnt</a> – a Swedish sales, marketing and web technology agency. We help companies and organizations to strengthen their brand, drive demand and generate inbound leads with content marketing on the web. We build online magazines for our clients. That’s a central piece in the larger puzzle of attracting potential clients, winning their trust, and converting them to customers.</p>
<p>Therefore, we need re-usable and customizable CSS that allow us to build content-rich web sites that will enable our clients, people who are not designers or developers, to present their content in a flexible way.</p>
<h2>How to use it</h2>
<p>Star by installing KCF on your site:</p>
<ol>
<li>
<a href='https://github.com/Kntnt/kntnt-css-framework/archive/refs/heads/main.zip'>Download KCF</a>
</li>
<li>Unpack the downloaded zip-file</li>
<li>Locate the directory named <code>kntnt-css-framework</code>, which is inside the unpacked directoryand, and move it to the root of your web site.</li>
</ol>
<p>Now you are ready to use KCF. Use following template for your web pages:</p>
<pre><code><!DOCTYPE html>
<html lang="…">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>…</title>
<link rel="stylesheet" href="normalize.css/normalize.css">
<link rel="stylesheet" href="kntnt-css-framework/constants.css">
<link rel="stylesheet" href="kntnt-css-framework/colors.css">
<link rel="stylesheet" href="kntnt-css-framework/defaults.css">
<link rel="stylesheet" href="kntnt-css-framework/normalize.css">
<link rel="stylesheet" href="kntnt-css-framework/page-layout.css">
<link rel="stylesheet" href="kntnt-css-framework/page-styles.css">
<link rel="stylesheet" href="kntnt-css-framework/content.css">
<link rel="stylesheet" href="kntnt-css-framework/positioning.css">
<link rel="stylesheet" href="kntnt-css-framework/faux-columns.css">
<link rel="stylesheet" href="kntnt-css-framework/flexbox-columns.css">
<link rel="stylesheet" href="kntnt-css-framework/utilities.css">
<link rel="stylesheet" href="kntnt-css-framework/utilities-aside.css">
<link rel="stylesheet" href="kntnt-css-framework/wordpress.css">
<link rel="stylesheet" href="…">
</head>
<body>
<header>
<div>
<div id="topbar">…</div>
</div>
<div>
<div id="header">…</div>
</div>
</header>
⋮
<main>…</main>
⋮
<footer>
<div>
<div id="footer">…</div>
</div>
<div>
<divid="bottombar">…</div>
</div>
</footer>
</body>
</html>
</code></pre>
<p>Replace <code>…</code> in <code><html lang="…"></code> with a <a href='https://www.ietf.org/rfc/bcp/bcp47.txt'>valid IETF identifying language tag</a>, e.g. <code>en</code>, describing the language used by the majority of the content of the page.</p>
<p>Replace <code>…</code> in <code><title>…</title></code> with the title you want to show in search engines’ result pages and web browsers tabs and title bars.</p>
<p>Replace <code>…</code> in <code><link rel="stylesheet" href="…"></code> with a relative or absolute URL to your stylesheet. Take a look at <a href='https://github.com/Kntnt/kntnt-css-framework/blob/main/examples/styles.css'>this page’s stylesheet</a> for inspiration.</p>
<p>If you don’t plan to use KCF with WordPress, remove the line <code><link rel="stylesheet" href="../kntnt-css-framework/kntnt-wordpress.css"></code>.</p>
<p>In <code><header>…</header></code>, the first <code>…</code> is the topbar's content (e.g. with shortcut links to essential pages), and the second <code>…</code> is the content of the actual header (w.g. with logo and navigation).</p>
<p>In <code><footer>…</footer></code>, the first <code>…</code> is the actual footer's content (e.g. with sitemap and social media icons), and the second <code>…</code> is the content of the bottombar (e.g. with copyright notice and legal disclaimers).</p>
<p>Replace <code>…</code> with nothing (i.e. <code><div></div></code>) to disable a row in in <code><header>…</header></code> or <code><footer>…</footer></code>.</p>
<p>The <code>⋮</code> before and after <code><main>…</main></code> represents content that is <em>not unique</em> for the page. Typically, the first <code>⋮</code> is used for an important message shown on all pages, while the last <code>⋮</code> is used for a gallery with related articles or similar. Each <code>⋮</code> is optional. If present, it must consist of at least one pair of outer and inner wrapper:</p>
<pre><code> <section>
<div>…</div>
</section>
</code></pre>
<p>The outer wrapper, i.e. <code><section>…</section></code> above, should be a semantic element (i.e. <code><section></code>, <code><aside></code>, <code><article></code> and <code><nav></code>). If no semantic element can be used in <a href='https://www.smashingmagazine.com/2013/01/the-importance-of-sections/'>inteded way</a>, use <code><div></code> instead. Replace <code>…</code> with content.</p>
<p>The <code>…</code> between <code><main></code> and <code></main></code> represents content that <em>is unique</em> for the page. Typically, this is where the page's main content, e.g. a blog post or article, goes. It must consist of at least one pair of outer and inner wrapper described above.</p>
<h2>Article</h2>
<p>For a page like this, with an article, blog post or similar, <code><main>…</main></code> should contain one <code><article><div>…</div></article></code> where <code>…</code> is the content of the article.</p>
<pre><code><article>
<div>
⋮
</div>
</article>
</code></pre>
<h2>Headline</h2>
<p>The headline is wrapped by <code><h1>…</h1></code>.</p>
<pre><code><h1>
Kntnt CSS Framework
</h1>
</code></pre>
<p>You can add a <em>kicker</em> or <em>standfirst</em> by wrapping it in <code><span class=" kicker">…</span></code> and insert it in <code><h1>…</h1></code> before the headline with white space or linefeed in-between.</p>
<pre><code><h1>
<span class="kicker">For developers:</span>
Kntnt CSS Framework
</h1>
</code></pre>
<p>You can add a <em>deck</em> or <em>subhead</em> by wrapping it in <code><span class="deck">…</span></code>and insert it in <code><h1>…</h1></code> after the headline with white a space or linefeed in-between.</p>
<pre><code><h1>
Kntnt CSS Framework
<span class="deck">— A foundation for modern web sites</span>
</h1>
</code></pre>
<p>Although not recommended, you can add both kicker and deck to a headline.</p>
<pre><code><h1>
<span class="kicker">For developers:</span>
Kntnt CSS Framework
<span class="deck">— A foundation for modern web sites</span>
</h1>
</code></pre>
<h2>Lead</h2>
<p>Use the class <code>lead</code> on the lead paragraph to make it stand out.</p>
<pre><code><p class="lead">
This is the lead paragraph. It should summarize the content of the article without revealing too much. The purpose is to give the reader enough so she can decide if the article is relevant and to entice her to read on
</p>
</code></pre>
<h2>Byline</h2>
<p>The byline consists of a <code><div class= "byline">…</div></code> wrapping one or more of the following parts in order of your choice:</p>
<p>The author wrapped by either <code><a>…</a></code> or <code><span>…</span></code>, depending on whether the name should be a link or not.</p>
<pre><code><a href="https://github.com/TBarregren">Thomas Barregren</a>
</code></pre>
<p>The date when the article was published, wrapped in by <code><time>…</time></code>.</p>
<pre><code><time datetime="2021-03-28">March 28, 2021</time>
</code></pre>
<p>A word or short phrase that categorize the article, wrapped by either <code><a>…</a></code> or <code><span>…</span></code>, depending on whether the category should be a link or not.</p>
<pre><code><a href="/news">News</a>
</code></pre>
<p>The result should lookk something like this:</p>
<pre><code><div class="byline">
<time datetime="2021-03-28">March 28, 2021</time>
<a href="https://github.com/TBarregren">Thomas Barregren</a>
<a href="/news">News</a>
</div>
</code></pre>
<p>Notice that there are no separation characters (e.g. | or •) between the elements. The separators between the elements are inserted by CSS.</p>
<h2>Headings</h2>
<p>Headings are used to divide a text into sections and explain what the section is about. In academic papers, technical reports, textbooks and similar, it can be beneficial to subdivide sections into subsections and further subdivide the subsections into sub-sub sections and so forth. The design of headings usually adapts to the hierarchy thus created. Usually, the headline has a visual hierarchy, where the heading of a subsection is visually "less" than its section's heading. To that end, <abbr>HTML</abbr> supports headings on six levels. These are <code><h1>…</h1></code>, <code><h2>…</h2></code> and so on to <code><h6>…</h6></code>.</p>
<h3>Don’t use <code><h1></code></h3>
<p>Don’t use <code><h1>…</h1></code> within your text. It should only be used in the headline described above.</p>
<h3>Shun academic headings</h3>
<p>Academic texts, reports and many books use intermediate headings at different levels. They are divided into chapters. Each chapter is divided into larger masses of text which in turn are divided into smaller ones which may be divided into even smaller ones, and so on down to paragraphs. Above each division (except for paragraphs) is a heading whose design (for example, size) reflects the division's place in an imaginary hierarchy. These headings are written to summarize everything that falls under them.</p>
<p>Compare that with how newspapers and magazines use headlines. Usually, they only have subheadings, and they are used less as a summary of that particular subsection but more as a lead into what comes next.</p>
<p>I do not know if the different ways have any recognized names, but for the sake of reasoning, we can call them <em>academic headings</em> and <em>journalistic headings</em>, respectively. Of the two, I strongly encourage you to use journalistic headings on the web even when the text has an inherent hierarchical structure.</p>
<h3>Subheading</h3>
<p>A subheading is created by wrapping the heading with <code><h2>…</h2></code>. In most cases, this is the only heading you will use.</p>
<h3>Sub-subheading</h3>
<p>Despite my general advice, there are situations where it is beneficial for the reader to use sub-subheadings. So, therefore, KCF supports both subheadings and sub-subheadings. The last three headings were sub-subheadings.</p>
<p>A sub-subheading is created by wrapping the heading with <code><h3>…</h3></code>.</p>
<h3>Paragraph headings</h3>
<p>In KCF, <code><h4>…</h4></code> through <code><h6>…</h6></code> also represents headings, but outside of the hierarchy established by <code><h1>…</h1></code> through <code><h3>…</h3></code>. These act as headings for the particual paragraph (or possible few paragraphs) that follow.</p>
<h4>General paragraph heading</h4>
<p>The heading above is an example of a paragraph heading. It is created by wrapping the heading in <code><h4>…</h4></code>. It is intended for situations where it's beneficial for the reader to get some help to identify a paragraph among many that talks about a specific topic or similar uses.</p>
<h3>Question type heading</h3>
<p>In-text with questions and answers, e.g. transcribed interviews and FAQ:s, the questions are natural to use as headings. You can use <code><h5>…</h5></code> to markup your questions in these and similar circumstances. Here is a couple of examples:</p>
<h5>Who are you?</h5>
<p>My name is Thomas. I'm co-owner of Kntnt – a Swedish sales, marketing and web technology agency. We help companies and organizations to strengthen their brand, drive demand and generate inbound leads with content marketing on the web.</p>
<h5>Why did you develop KCF?</h5>
<p>We build online magazines for our clients. That's a central piece in the larger puzzle of attracting potential clients, winning their trust, and converting them to customers. These online magazines are built on a common foundation, which includes re-usable HTML, CSS and JS. Previously, we used <a href='http://lesscss.org/'>Less</a> to make customization of the CSS. I prefer Less above <a href='https://sass-lang.com/'>Sass</a> since it's leaner. I like to keep things as lean and straightforward as possible. And that got me thinking of using CSS built-in capabilities, such as <code>var()</code>, <code>calc()</code>, <code>max()</code> and <code>min()</code>, to make our workflow even easier and leaner. That resulted in KCF.</p>
<h3>Run-in heading</h3>
<p>H6 gives a <em>run-in heading</em>. It is a heading at the beginning of a paragraph. It can be used, for instance, as an alternative to a description list or unordered list.</p>
<h6>First point.</h6>
<p>This is an example of how it looks when <code><h6>…</h6></code> is used to make paragraphs look like a listing of some sort. Each "point" starts with a heading, which is wrapped by <code><h6>…</h6></code> and then followed by the actual paragraph.</p>
<h6>Second point.</h6>
<p>This approach is better than just using bold or italic font since it provides semantics of importance for search engines and other "machine readers".</p>
<h6>Third and last point.</h6>
<p>Usually, headings don't end with punctuation other than an exclamation mark or question mark. Run-in headers are different. Here it could be beneficial to use a dot or colon or maybe even a dash.</p>
<h2>Unordered lists</h2>
<p>An <em>unordered list</em> is a list of items without implied order.</p>
<p>Following is an example of how to create an unordered list of Swedish kings that have ruled during the 20th century:</p>
<pre><code><ul>
<li>Oscar II</li>
<li>Gustav V</li>
<li>Gustav VI Adolf</li>
<li>Carl XVI Gustaf</li>
</ul>
</code></pre>
<p>The result looks like this:</p>
<ul>
<li>Oscar II</li>
<li>Gustav V</li>
<li>Gustav VI Adolf</li>
<li>Carl XVI Gustaf</li>
</ul>
<p>The character before each item can be changed by adding a class either to the <code><ul></code>-element or to an individual <code><li></code>-element. Following classes are available:</p>
<ul>
<li class="none"><code>none</code></li>
<li class="disc"><code>disc</code></li>
<li class="circle"><code>circle</code></li>
<li class="square"><code>square</code></li>
</ul>
<h2>Ordered lists</h2>
<p>An <em>ordered list</em> is a list of items with implied order (e.g. by number).</p>
<p>Following is an example of how to create an ordered list of the top three places in the Swedish selection for the Eurovision Song Contest 2018:</p>
<pre><code><ol>
<li>Dance You Off med Benjamin Ingrosso</li>
<li>Every Single Day med Felix Sandman</li>
<li>My Turn med John Lundvik</li>
</ol>
</code></pre>
<p>The result looks like this:</p>
<ol>
<li>Dance You Off med Benjamin Ingrosso</li>
<li>Every Single Day med Felix Sandman</li>
<li>My Turn med John Lundvik</li>
</ol>
<p>The numerals before each item can be changed by adding a class either to the <code><ul></code>-element or to an individual <code><li></code>-element. Following classes are available:</p>
<ol>
<li class="none"><code>none</code></li>
<li class="decimal"><code>decimal</code></li>
<li class="decimal-leading-zero"><code>decimal-leading-zero</code></li>
<li class="roman"><code>roman</code></li>
<li class="roman-upper"><code>roman-upper</code></li>
<li class="latin"><code>latin</code></li>
<li class="latin-upper"><code>latin-upper</code></li>
<li class="greek"><code>greek</code></li>
</ol>
<h2>Nested lists</h2>
<p>It is possible to place a list inside another list. This is what it might look like:</p>
<ul>
<li>
<p>Item 1</p>
</li>
<li>
<p>Item 2</p>
<ul>
<li>
<p>Item 2.1</p>
</li>
<li>
<p>Item 2.2</p>
<ul>
<li>
<p>Item 2.2.1</p>
<ol>
<li>Item 2.2.1.1</li>
<li>Item 2.2.1.2</li>
<li>Item 2.2.1.3</li>
</ol>
</li>
<li>
<p>Item 2.2.2</p>
</li>
</ul>
</li>
<li>
<p>Item 2.3</p>
</li>
</ul>
</li>
<li>
<p>Item 3</p>
</li>
</ul>
<h2>Description list</h2>
<p>A <em>description list</em> is a list of groups of terms (each wrapped by <code><dt>…</dt></code>) followed by a group of descriptions (each wrapped by <code><dd>…</dd></code>). It's often used for key-value tables, e.g. glossary or metadata.</p>
<p>Following is an example of how description list can be used to describe some Swedish apples:</p>
<pre><code><dl>
<dt>Aroma</dt>
<dd>Aroma is round in shape and has a greenish-yellow to yellow color with red streaks. Aroma ripens in late September through December and sometimes longer. Suitable for growing in zones 1-4.</dd>
<dt>Katja</dt>
<dd>The size is medium, and the color is green to yellow. If the fruit has been in the sun, it can be almost completely covered in a warm red color. Katja matures from August to November and is suitable for growing in zones 1-4.</dd>
<dt>Transparente blanche</dt>
<dd>The color is yellowish white and medium in size. The apple ripens from mid-August and can be grown in zones 1-6</dd>
</dl>
</code></pre>
<p>The result looks like this:</p>
<dl>
<dt>Aroma</dt>
<dd>Aroma is round in shape and has a greenish yellow to yellow color with red streaks. Aroma ripens in late September through December and sometimes longer. Suitable for growing in zones 1-4.</dd>
<dt>Katja</dt>
<dd>The size is medium and the color is basically green to yellow. If the fruit has been in the sun, it can be almost completely covered in a warm red color. Katja matures from August to November and is suitable for growing in zones 1-4.</dd>
<dt>Transparente blanche</dt>
<dd>The color is yellowish white and medium in size. The apple ripens from mid-August and can be grown in zones 1-6</dd>
</dl>
<p>The following shows how many terms can share the same description:</p>
<pre><code><dl>
<dt>Aroma</dt>
<dt>Katja</dt>
<dt>Transparente blanche</dt>
<dd>Swedish apples</dd>
<dt>Clara Frijs</dt>
<dt>Greve Moltke</dt>
<dd>Danish pears</dd>
</dl>
</code></pre>
<p>This is how it looks like:</p>
<dl>
<dt>Aroma</dt>
<dt>Katja</dt>
<dt>Transparente blanche</dt>
<dd>Swedish apples</dd>
<dt>Carola</dt>
<dt>Clara Frijs</dt>
<dt>Greve Moltke</dt>
<dd>Danish pears</dd>
</dl>
<p>Finally, one term can have several descriptions:</p>
<pre><code><dl>
<dt>Carola</dt>
<dd>A Swedish apple variety.</dd>
<dd>A Swedish artist who has won the European Song Contest.</dd>
<dt>Moltke</dt>
<dd>A Danish apple variety.</dd>
<dd>A Dansih duke born 1785 and died 1864.</dd>
</dl>
</code></pre>
<p>This is how it looks like:</p>
<dl>
<dt>Carola</dt>
<dd>A Swedish apple variety.</dd>
<dd>A Swedish artist who has won the European Song Contest.</dd>
<dt>Moltke</dt>
<dd>A Danish apple variety.</dd>
<dd>A Danish duke who gave named to an apple variety.</dd>
</dl>
<h2>Tables</h2>
<p>For more complicated layouts than lists, a <em>table</em> can be used.</p>
<p>This example shows how to use <code><table>…</table></code> to present the three smalles municipals of Sweden:</p>
<pre><code><table>
<caption>Population in Sweden's three smallest municipalities</caption>
<thead>
<tr>
<td>Municipality</td>
<td>Population</td>
</tr>
</thead>
<tbody>
<tr>
<td>Bjurholm</td>
<td>2 387</td>
</tr>
<tr>
<td>Sorsele</td>
<td>2 442</td>
</tr>
<tr>
<td>Dorotea</td>
<td>2 498</td>
</tr>
</tbody>
</table>
</code></pre>
<p>This is how it looks:</p>
<table>
<caption>
Population in Sweden's three smallest municipalities
</caption>
<thead>
<tr>
<td>Municipality</td>
<td>Population</td>
</tr>
</thead>
<tbody>
<tr>
<td>Bjurholm</td>
<td>2 387</td>
</tr>
<tr>
<td>Sorsele</td>
<td>2 442</td>
</tr>
<tr>
<td>Dorotea</td>
<td>2 498</td>
</tr>
</tbody>
</table>
<p>Notice that <code><caption>…</caption></code> wraps the table caption. It <em>must</em> be the first descendant of the <code><table>…</table></code>.</p>
<p>By default, the caption is printed above the table. If you prefer to have it at the bottom, don't move <code><caption>…</caption></code>. Just add the class <code>underneath</code>. Here is an example:</p>
<pre><code><table class="alignright">
<caption class="underneath">Tabell där två celler är sammanslagna horisontellt och två celler är sammanslagna vertikalt.</caption>
<tbody>
<tr>
<th>Namn</th>
<th colspan="2">Telefonnummer</th>
</tr>
<tr>
<td>Adam</td>
<td rowspan="2">010-203040</td>
<td>010-506070</td>
</tr>
<tr>
<td>Berit</td>
<td colspan="2">090-807060</td>
</tr>
</tbody>
</table>
</code></pre>
<p>Now, the caption is at the bottom of the table:</p>
<table class="alignright">
<caption class="underneath">
Tabell där två celler är sammanslagna horisontellt och två celler är sammanslagna vertikalt.
</caption>
<tbody>
<tr>
<th>Namn</th>
<th colspan="2">Telefonnummer</th>
</tr>
<tr>
<td>Adam</td>
<td rowspan="2">010-203040</td>
<td>010-506070</td>
</tr>
<tr>
<td>Berit</td>
<td colspan="2">090-807060</td>
</tr>
</tbody>
</table>
<p>Using <code><caption>…</caption></code> is the recommended way to add a caption to a table. But it's possible to use the more generic form presented next.</p>
<h2>Figures and captions</h2>
<p>Illustrations, diagrams, photos, video, audio, code listings and similar things referenced in the text, but can be moved to another part of the page without affecting the meaning of the content, should be wrapped by <code><figure>…</figure></code>.</p>
<p>Such self-contained content usually has a caption. This option should be wrapped by <code><figcaption>…</figcaption></code> and put either as the first or the last descendant of <code><figure>…</figure></code>.</p>
<p>Following is a typically use:</p>
<pre><code><figure>
<img src="image-450.jpg" alt="Hot air balloon over sea at blue hour">
<figcaption>Photo: Bessi.</figcaption>
</figure>
</code></pre>
<p>This is the result of the above code.</p>
<figure>
<img src="images/image-450.jpg" alt="Hot air balloon over sea at blue hour">
<figcaption>
Artist: Bessi.
</figcaption>
</figure>
<p>Notice that <code><figcaption>…</figcaption></code> <em>must</em> be either the first or the last descendant of <code><figure>…</figure></code>. Its placement determines if the caption is shown above or below, respectively, the content. This is how the above image looks if <code><figcaption>…</figcaption></code> is moved to the top.</p>
<figure>
<figcaption>
Artist: Bessi.
</figcaption><img src="images/image-450.jpg" alt="Hot air balloon over sea at blue hour">
</figure>
<h2>Images</h2>
<p>There are a lot to say about images on the web. That is, however, out of scope of this artcile. Its purpose is to show how to use KCF. But I will offer some advice:</p>
<h4>Image file format</h4>
<p>Use WebP or JPEG for photographs. Use WebP, PNG-8 or GIF for illustrations with few colors, no large tinted surfaces or alpha channel. Use WebP or PNG-24 for illustrations with many colors, large tinted surfaces or alpha channel.</p>
<h4>Crop</h4>
<p>As a rule of thumb, crop images to the classic proportions of 3:2 (landscape) or 2:3 (portrait) if you don't need a more specific crop.</p>
<h4>Resizing</h4>
<p>Resize the cropped image to all possible image sized used by KCF:</p>
<figure>
<table>
<thead>
<tr>
<th>Landscape</th>
<th>Portrait</th>
</tr>
</thead>
<tbody>
<tr>
<td>1920 × 1280</td>
<td>1920 × 2880</td>
</tr>
<tr>
<td>1060 × 707</td>
<td>1060 × 1590</td>
</tr>
<tr>
<td>900 × 600</td>
<td>900 × 1350</td>
</tr>
<tr>
<td>600 × 400</td>
<td>600 × 900</td>
</tr>
<tr>
<td>450 × 300</td>
<td>450 × 675</td>
</tr>
<tr>
<td>300 × 200</td>
<td>300 × 450</td>
</tr>
<tr>
<td>225 × 150</td>
<td>225 × 338</td>
</tr>
</tbody>
</table>
</figure>
<h4>Save images</h4>
<p>Save the different sizes with names that end with dash and the width. For instance, if the original image file is named <code>image.jpg</code>, name the resulting image files as follows:</p>
<ul>
<li><code>image-1920.jpg</code></li>
<li><code>image-1060.jpg</code></li>
<li><code>image-900.jpg</code></li>
<li><code>image-600.jpg</code></li>
<li><code>image-450.jpg</code></li>
<li><code>image-300.jpg</code></li>
<li><code>image-225.jpg</code></li>
</ul>
<p>You should save these files at near maximum quality. In the next step, we will compress them further.</p>
<h4>Compression</h4>
<p>Run the saved images through one of following image optimization software:</p>
<dl>
<dt>Linux</dt>
<dd>
<a href="https://trimage.org/">Trimage</a>
</dd>
<dt>Mac OS X</dt>
<dd>
<a href="https://imageoptim.com/mac">ImageOptim</a>
</dd>
<dt>Windows</dt>
<dd>
<a href="https://css-ig.net/pingo">Pingo</a>
</dd>
</dl>
<p>PNG and GIF are not lossy in themselves, but the above-suggested software can do lossy compression if you allow it. Do that.</p>
<p>Don't fear lossy compression. Try to compress the images as much as you can. As long as you can't see any quality losses, its okay.</p>
<p>Make sure no file, not even the largest ones, are bigger than 2MB. Preferably, they should be much smaller.</p>
<h6>Include images</h6>
<p>After uploading the images, its time to use them. Following code is not optimal, but better</p>
<pre><code><img srcset="image-225.jpg 225w,
image-300.jpg 300w,
image-450.jpg 450w,
image-600.jpg 600w,
image-900.jpg 900w,
image-1060.jpg 1060w,
image-1920.jpg 1920w"
sizes="(max-width: 1920px) 100vw, 1920px"
src="image-1920.jpg"
loading="lazy"
alt="Hot air balloon over sea at blue hour">
</code></pre>
<p>The result looks like this:</p><img srcset="images/image-225.jpg 225w, images/image-300.jpg 300w, images/image-450.jpg 450w, images/image-600.jpg 600w, images/image-900.jpg 900w, images/image-1060.jpg 1060w, images/image-1920.jpg 1920w" sizes="(max-width: 1920px) 100vw, 1920px" src="images/image-1920.jpg" loading="lazy" alt="Hot air balloon over sea at blue hour">
<h2>Inline quotes</h2>
<p>A quote inside a text is called an <em>inline quote</em>. A such begins and ends with quotation marks. Although you can enter them yourself, it is higly recommeded to let the web browser do it for you. Most people don’t know how to produce typographic correct quotation marks on their keyboards, and end up using the inch-symbol "like this" instead of proper quotation marks “like this”. Modern web browsers insert correct quotation marks for tha language set with the <code>lang</code> attribute. What’s correct quotation marks varies from language to language. Some examples:</p>
<ul style="font-family: var(--font-stack-serif)">
<li lang="fr"><q>Ceci est une citation française</q></li>
<li lang="de"><q>Dies ist ein deutsches Zitat</q></li>
<li lang="pl"><q>To jest polski cytat</q></li>
<li lang="sv"><q>Detta är ett svenskt citat</q></li>
<li lang="en"><q>This is an English quote</q></li>
</ul>
<p>To allow the web browser to insert quotation marks for you, wrap the quote with <code><q>…</q></code>. Don’t write quotation marks yourself. This is an example of how to do it:</p>
<pre><code><p>When Dave asks HAL to open the pod bay door, HAL answers: <q>I’m sorry, Dave. I’m afraid I can’t do that.</q></p>
</code></pre>
<p>The result looks like this:</p>
<div>
<p><samp>When Dave asks HAL to open the pod bay door, HAL answers: <q>I’m sorry, Dave. I’m afraid I can’t do that.</q></samp></p>
</div>
<p>Another advantage of using <code><q>…</q></code> is that you can add a machine-readable link to the source with the <code>cite</code> attribute. Here is an example:</p>
<pre><code><p>When Dave asks HAL to open the pod bay door, HAL answers: <q cite="https://www.imdb.com/title/tt0062622/quotes/qt0396921"> I’m sorry, Dave. I’m afraid I can’t do that.</q></p>
</code></pre>
<p>The URL is not rendered:</p>
<div>
<p><samp>When Dave asks HAL to open the pod bay door, HAL answers: <q cite="https://www.imdb.com/title/tt0062622/quotes/qt0396921">I'm sorry, Dave. I'm afraid I can't do that.</q></samp></p>
</div>
<aside class="panel alert-light">
<p>Don't use <code><q>…</q></code> for other purposes than quotes. For sarcasm and similar applications of quotation marks, you must write the correct quotation marks yourself.</p>
</aside>
<h2>Blockquotes</h2>
<p>Longer quotes that are reproduced in a separate paragraph are called <em>block quotes</em>. A such is wrappen in <code><blockquote>…</blockquote></code> as in this example:</p>
<pre><code><blockquote cite="https://www.imdb.com/title/tt0109830/">
<p>Mamma said stupid is as stupid does!</p>
</blockquote>
</code></pre>
<p>The result looks like this:</p>
<blockquote cite="https://www.imdb.com/title/tt0109830/">
<p>Mamma said stupid is as stupid does!</p>
</blockquote>
<p>Notice that the <code>cite</code> attribute isn’t rendered. It’s optional. If included, it must be a URL that designates a source document or message for the information quoted. This attribute is intended to point machines (e.g. search engines) to information explaining the context or the reference for the quote.</p>
<p>To add a human-readable cite, use following construct:</p>
<pre><code><figure>
<blockquote cite="https://www.imdb.com/title/tt0109830/">
<p>Mamma said stupid is as stupid does!</p>
</blockquote>
<figcaption>– Forest Gump in the movie <cite><a href="https://www.imdb.com/title/tt0109830/">Forest Gump</a></cite></figcaption>
</figure>
</code></pre>
<p>The result looks like this:</p>
<figure>
<blockquote cite="https://www.imdb.com/title/tt0109830/">
<p>Mamma said stupid is as stupid does!</p>
</blockquote>
<figcaption>
– Forest Gump in the movie <cite><a href="https://www.imdb.com/title/tt0109830/">Forest Gump</a></cite>
</figcaption>
</figure>
<p>Note that <code><cite>…</cite></code> encloses the name of the work from which the quote comes. It should <em>not</em> contain the author’s name or anything else.</p>
<p>For a single paragraph quote, the wrapping <code><p>…</p></code> tags can be omitted:</p>
<pre><code><blockquote>
Mamma said stupid is as stupid does!
</blockquote>
</code></pre>
<p>The result looks like this:</p>
<blockquote>
Mamma said stupid is as stupid does!
</blockquote>
<h2>Editing text</h2>
<p>Many people who write for the web want to forget what they are writing needs to be converted to <abbr title="Hyper Text Markup Language">HTML</abbr> Unfortunately, word processors and text editors are lousy at creating semantically correct <abbr>HTML</abbr> code. Therefore, every web writer should know basic <abbr>HTML</abbr> and be prepared to use it. In this article, there are many examples of what you can do. However, the article is not a course in <abbr>HTML</abbr>. Nevertheless, in this section, we will get acquainted with <abbr>HTML</abbr> elements that are primarily there to give text semantic meaning and graphic style.</p>
<h4><code><em></code>, <code><dfn></code>, <code><cite></code>, <code><var></code> and <code><i></code></h4>
<p>Several HTML elements make the content they wrap rendered italicized. They differ in their semantic meaning. Choose wisely.</p>
<ul>
<li>
<p>Use <code><em>…</em></code> to markup a word or a phrase that need <em>emphasis</em>. Example: This is <em>indeed</em> essential.</p>
</li>
<li>
<p>Use <code><dfn>…</dfn></code> to mark a word or a phrase that is <dfn>defined</dfn>. Example: In this context, <dfn>pilot</dfn> refers to…</p>
</li>
<li>
<p>Use <code><cite>…</cite></code> to markup a <cite>name of a creative work</cite>. Example: Shakespar wrote <cite>Hamlet</cite>.</p>
</li>
<li>
<p>Use <code><var>…</var></code> to markup a letter as a <var>variable</var>. Example: <var>x</var> = 2.</p>
</li>
<li>
<p>Use <code><i>…</i></code> to markup text that need to be differentiated from ormal text. Here are some examples listed in <cite><a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i'>MDN Web Docs</a></cite>:</p>
<ul>
<li>Alternative voice or mood</li>
<li>Taxonomic designations (such as the genus and species "<em>Homo sapiens</em>")</li>
<li>Idiomatic terms from another language (such as "<em>et cetera</em>"); these should include the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang'><code>lang</code></a> attribute to identify the language
</li>
<li>Technical terms</li>
<li>Transliterations</li>
<li>Thoughts (such as "She wondered, <em>What is this writer talking about, anyway?</em>")</li>
<li>Ship or vessel names in Western writing systems (such as "They searched the docks for the <em>Empress of the Galaxy</em>, the ship to which they were assigned.")</li>
</ul>
</li>
</ul>
<h4><code><strong></code> and <code><b></code></h4>
<p>Two HTML elements are rendering their wrapped content with boldface but with different semantic meaning:</p>
<ul>
<li>Use <code><strong>…</strong></code> to markup a word or a phrase that need <strong>strong emphasis</strong>. Example: <strong>Warning:</strong> The coffee is hot.</li>
<li>Use <code><b>…</b></code> to <b>bring attention to</b> to the marked up word or phrase. <cite><a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i'>MDN Web Docs</a></cite> suggest using it for cases like keywords in summary, product names in a review, or other spans of text whose typical presentation would be boldfaced (but not including any special importance).</li>
</ul>
<h4><code><mark></code></h4>
<p>If you need to <mark>mark or highlight</mark> a portion of a text, wrap it with <code><mark>…</mark></code>.</p>
<p><b>Example:</b> <dfn>Anaphora</dfn> is a figure of speech in which words repeat at the beginning of successive clauses, phrases, or sentences. Dr Martin Luther King Jr. eminently used anaphora in his famous talk from 1963:</p>
<figure>
<blockquote>
<p><mark>I have a dream</mark> that one day down in Alabama, with its vicious racists, with its governor having his lips dripping with the words of interposition and nullification – one day right there in Alabama little black boys and black girls will be able to join hands with little white boys and white girls as sisters and brothers.</p>
<p><mark>I have a dream</mark> today.</p>
<p><mark>I have a dream</mark> that one day every valley shall be exalted and every hill and mountain shall be made low, the rough places will be made plain, and the crooked places will be made straight, and the glory of the Lord shall be revealed and all flesh shall see it together.</p>
</blockquote>
<figcaption>
– Martin Luther King Jr., <cite>I have a dream</cite>, 1963
</figcaption>
</figure>
<h4><code><u></code> and <code><s></code></h4>
<p>The two elements <code><u>…</u></code> and <code><s>…</s></code> draw a line <u>under</u> and <s>through</s>, respectively, their wrapped content.</p>
<ul>
<li>Use <code><u>…</u></code> as an unarticulated annotation of the wrapped text. Example: In this text, <u>speling</u> mistakes are <u>underlned</u>.</li>
<li>Use <code><s>…</s></code> to show that the wrapped content are no longer relevant or no longer accurate. Example: <s>Use <code><s></code> to decorate your text.</s></li>
</ul>
<h4><code><ins></code> and <code><del></code></h4>
<p>Use <code><ins>…</ins></code> and <code><del>…</del></code> to wrap text that has been <ins>inserted</ins> and <del>deleted</del>, respectively.</p>
<ul>
<li>Use <code><ins>…</ins></code> to markup text that have been inserted. Example: He has <ins>got</ins> a new coat.
</li>
<li>
<code><del>…</del></code> to markup text that have been deleted. Example: The gave me his old <del>ugly</del> coat.
</li>
</ul>
<h4><code><sup></code> and <code><sub></code></h4>
<p>Use <code><sup>…</sup></code> and <code><sub>…</sub></code> to create <sup>superscript</sup> and <sub>subscript</sub> respectively.</p>
<ul>
<li>Use <code><sup>…</sup></code> to display <code>…</code> as superscript. Example: The Pythagorean theorem: <var>a</var><sup>2</sup> + <var>b</var><sup>2</sup> = <var>c</var><sup>2</sup></li>
<li>Use <code><sub>…</sub></code> to display <code>…</code> as subscript. Example:
<p>Almost every writer's favorite molecule is C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub> – also known as “caffeine.”</p>
</li>
</ul>
<h4><code><pre></code>, <code><code></code>, <code><kbd></code> and <code><samp></code></h4>
<p>To represent computer code, input and output and similar, we have <code><code></code>, <code><kbd></code> and <code><samp></code>, respectively.</p>
<ul>
<li>Use <code><code>…</code></code> to markup short fragment of <code>computer code</code>. Example: The tag <code><br></code> represents line feed.</li>
<li>Use <code><kbd>…</kbd></code> to illustrate <kbd>k</kbd><kbd>e</kbd><kbd>y</kbd><kbd>s</kbd> on the keyboard. Example: Press <kbd>⌘</kbd> + <kbd>S</kbd> to save.</li>
<li>Use <code><samp>…</samp></code> to represent a sample output from a computer. Example: If you see <samp>Error</samp> on the screen, something went wrong.</li>
</ul>
<h4><code><pre></code></h4>
<p>To represent longer text that must appear exactly as preformatted – as if it were written on a typewriter – use <code><pre>…</pre></code>.</p>
<p>Follwoing HTML code, adapted from <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre'>MDN Web Docs</a> presentation of <code><pre></code> is an example where it's important to wrap the content in <code><pre>…</pre></code>:</p>
<pre><code><pre>
----------------------------
| I'm an expert in my field. |
----------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
</pre>
</code></pre>
<p>Here is the result:</p>
<pre> ----------------------------
| I'm an expert in my field. |
----------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
</pre>
<h4><code><abbr></code></h4>
<p>Use <code><abbr>…</abbr></code> to wrap abbreviations and acronyms.</p>
<p>It would of course be silly to wrap every <i>e.g.</i>, <i>i.e.</i>, <i>etc</i> and so forth with <code><abbr>…</abbr></code>. Use it instead with the <code>title</code> attribute, as shown below, when introducing an abbreviation or acronyme that might be unknonw for the read.</p>
<pre><code><p><abbr title="HyperText Markup Language">HTML</abbr> is a markup language used to create the semantics and structure of a web page.</p>
</code></pre>
<p>The result is a discreet marking of the abbreviation, indicating that the users can hover over the abbreviation to see an explanation in a tooltip.</p>
<div>
<p><abbr title="HyperText Markup Language">HTML</abbr> is a markup language used to create the semantics and structure of a web page.</p>
</div>
<h2>Positioning and styling of content blocks</h2>
<p>KCF gives you the opportunity to influence the width and position of a block of content and thereby create pull quotes, calboxes and more.</p>
<h3>Positioning</h3>
<p>By default, blocks are positioned between paragraphs with indentation. By applying one of the classes in the table below, their size and position will change.</p>
<figure>
<table>
<thead>
<tr>
<th>Class(es)</th>
<th>Position</th>
</tr>
</thead>
<tbody>
<tr>
<td>indent<br>
(or no class)</td>
<td>Indented from column's left, taking up as much horizontal space as needed with respect to indention from column's right.</td>
</tr>
<tr>
<td>center</td>
<td>Centered column's left and right indention.</td>
</tr>
<tr>
<td>wide</td>
<td>Stretched as wide as the column</td>
</tr>
<tr>
<td>protrude wide</td>
<td>Stretched as wide as header/footer</td>
</tr>
<tr>
<td>margin wide</td>
<td>Stretched between viewport edges</td>
</tr>
<tr>
<td>left/right</td>
<td>Aligned to left/right column edge with half column width</td>
</tr>
<tr>
<td>protrude left/right</td>
<td>Aligned to left/right header/footer edge with half column width</td>
</tr>
<tr>
<td>margin left/right</td>
<td>Aligned to left/right viewport edge with 1rem distance and third column width</td>
</tr>
</tbody>
</table>
</figure>
<p>The positioning classes above must only be used on following elements:</p>
<ul>
<li><code><blockquote>…</blockquote></code></li>
<li><code><ul>…<\ul></code></li>
<li><code><ol>…<\ol></code></li>
<li><code><dl>…</dl></code></li>
<li><code><table>…</table></code></li>
<li><code><pre>…</pre></code></li>
<li><code><img></code></li>
<li><code><figure>…</figure></code></li>
<li><code><aside>…</aside></code></li>
<li><code><div>…</div></code></li>
</ul>
<p>Moreover, the positioning classes above must only be used on an element that is not wrappen by any other element. Thus, following example is not valid:</p>
<pre class="negative panel"><code><figure><img <span class="darken">class="wide"</span> … ></figure></code></pre>
<p>However, following is valid and will produce the expected result:</p>
<pre class="positive panel"><code><figure <span class="darken">class="wide"</span>><img … ></figure></code></pre>
<h3>Styling</h3>
<p>With positioning comes some styling. Most of it happens behind he curtain, to ensure the expected look of the positioned element. But there is a class designed to go hand in hand with positioning: <code>panel</code>.</p>
<p>When a positioned element has the class <code>panel</code>, its content are slightly reduced and displayed in a panel with border and padding. The effect is even more noticeable if you use one of the predefined color classes (see below) or yor own customized color class.</p>
<p>For an example, let’s start with a centered <code><div>…</div></code> with some silly content. The result looks like this:</p>
<div class="center outline-on-hover">
Silly content.
</div>
<p>It doesn't look centered. That's because the <em>text</em> within the wrapper <code><div>…</div></code> isn't centered. But the <em>wrapper</em> itself is centered. Hover or tap on it to see the otherwise invisble wrapper.</p>
<p>Now add the class <code>panel</code>: <code><div class="panel">…</div></code>. Here is how it looks like:</p>
<div class="center panel">
Silly content.
</div>
<p>It looks like the content has moved into a panel and shrunked a tad to get some space around itself.</p>
<p>And finally give it some color:</p>
<p>Finally, add a color class to it: <code><div class="panel breezy-blue">…</div></code>. This is the result:</p>
<div class="center panel breezy-blue">
Silly content.
</div>
<p>Neat, yeah? You will see more examples with and without <code>panel</code> applied below.</p>
<h3>Demonstration of postioning classes</h3>
<p>Below, you find examples of application of each class. Please check it on vary sceen sizes.</p>
<h4>Class: <code>(no class)</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="touch-of-torqouise panel min-content-no-wrap-center">
<span>(no class)</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<h4>Class: <code>center</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="center hint-of-mint panel min-content-no-wrap-center">
<span>center</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<h4>Class: <code>wide</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="wide creamy-peach panel min-content-no-wrap-center">
<span>wide</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<h4>Class: <code>protrude wide</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="protrude wide milky-yellow panel min-content-no-wrap-center">
<span>protrude wide</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<h4>Class: <code>margin wide</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="margin wide lilac-haze panel min-content-no-wrap-center">
<span>margin wide</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<h4>Class: <code>left</code></h4>
<div class="left cloudy-blue panel min-content-no-wrap-center">
<span>left</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h4>Class: <code>right</code></h4>
<div class="right dash-of-lime panel min-content-no-wrap-center">
<span>right</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h4>Class: <code>protrude left</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="protrude left mellow-coral-red panel min-content-no-wrap-center">
<span>protrude left</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h4>Class: <code>protrude right</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="protrude right cherry-blossom-pink panel min-content-no-wrap-center">
<span>protrude right</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h4>Class: <code>left margin</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="left margin pale-orange panel min-content-no-wrap-center">
<span>left margin</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h4>Class: <code>right margin</code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum semper rhoncus nulla vitae faucibus. Curabitur ac felis at purus volutpat pharetra vel dignissim enim. Integer cursus massa fringilla venenatis varius.</p>
<div class="right margin breezy-blue panel min-content-no-wrap-center">
<span>right margin</span>
</div>
<p>Nulla ac molestie ipsum. Aenean imperdiet, dui non sagittis fringilla, ipsum augue hendrerit dui, quis dignissim neque massa a massa. Pellentesque malesuada augue venenatis sem tincidunt sagittis. Phasellus ut arcu ex.</p>
<p>Nulla scelerisque, sapien id vestibulum porta, erat mauris tristique mauris, vitae blandit libero augue eu nunc. Nam imperdiet sapien vitae consequat auctor. Curabitur ac leo efficitur tortor maximus blandit quis ac metus. Morbi et fermentum est.</p>
<h3>Demonstration of all permissble blocks</h3>
<p>Below, you find examples demonstrating positioning of block content.</p>
<h4>Block: <code><blockquote></code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel neque ut nisi eleifend aliquet. Aenean ut enim sapien. Praesent ultrices maximus nunc, non mattis sapien dapibus non. Nullam tincidunt interdum nunc, a euismod ligula sollicitudin sollicitudin.</p>
<blockquote class="right">
Life is a long lesson in humility
</blockquote>
<p>Curabitur malesuada metus consequat felis consectetur sodales. Integer commodo, nunc ac facilisis suscipit, enim libero vehicula nulla, id vestibulum diam ipsum eget ex. Integer vel bibendum justo. Sed porta, lorem id cursus luctus, risus metus ullamcorper libero, ut euismod ante massa sed lorem.</p>
<p>Nunc vel arcu sed tortor elementum sagittis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas ut orci vel dui tincidunt euismod.</p>
<h4>Block: <code><ul></code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel neque ut nisi eleifend aliquet. Aenean ut enim sapien. Praesent ultrices maximus nunc, non mattis sapien dapibus non. Nullam tincidunt interdum nunc, a euismod ligula sollicitudin sollicitudin.</p>
<ul class="right margin">
<li>Oscar II</li>
<li>Gustav V</li>
<li>Gustav VI Adolf</li>
<li>Carl XVI Gustaf</li>
</ul>
<p>Curabitur malesuada metus consequat felis consectetur sodales. Integer commodo, nunc ac facilisis suscipit, enim libero vehicula nulla, id vestibulum diam ipsum eget ex. Integer vel bibendum justo. Sed porta, lorem id cursus luctus, risus metus ullamcorper libero, ut euismod ante massa sed lorem.</p>
<p>Nunc vel arcu sed tortor elementum sagittis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas ut orci vel dui tincidunt euismod.</p>
<h4>Block: <code><ol></code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel neque ut nisi eleifend aliquet. Aenean ut enim sapien. Praesent ultrices maximus nunc, non mattis sapien dapibus non. Nullam tincidunt interdum nunc, a euismod ligula sollicitudin sollicitudin.</p>
<ol class="right">
<li>Dance You Off med Benjamin Ingrosso</li>
<li>Every Single Day med Felix Sandman</li>
<li>My Turn med John Lundvik</li>
</ol>
<p>Curabitur malesuada metus consequat felis consectetur sodales. Integer commodo, nunc ac facilisis suscipit, enim libero vehicula nulla, id vestibulum diam ipsum eget ex. Integer vel bibendum justo. Sed porta, lorem id cursus luctus, risus metus ullamcorper libero, ut euismod ante massa sed lorem.</p>
<p>Nunc vel arcu sed tortor elementum sagittis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas ut orci vel dui tincidunt euismod.</p>
<h4>Block: <code><dl></code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel neque ut nisi eleifend aliquet. Aenean ut enim sapien. Praesent ultrices maximus nunc, non mattis sapien dapibus non. Nullam tincidunt interdum nunc, a euismod ligula sollicitudin sollicitudin.</p>
<dl class="center lilac-haze panel">
<dt>Aroma</dt>
<dd>Aroma is round in shape and has a greenish-yellow to yellow color with red streaks. Aroma ripens in late September through December and sometimes longer. Suitable for growing in zones 1-4.</dd>
<dt>Katja</dt>
<dd>The size is medium, and the color is green to yellow. If the fruit has been in the sun, it can be almost completely covered in a warm red color. Katja matures from August to November and is suitable for growing in zones 1-4.</dd>
<dt>Transparente blanche</dt>
<dd>The color is yellowish white and medium in size. The apple ripens from mid-August and can be grown in zones 1-6</dd>
</dl>
<p>Curabitur malesuada metus consequat felis consectetur sodales. Integer commodo, nunc ac facilisis suscipit, enim libero vehicula nulla, id vestibulum diam ipsum eget ex. Integer vel bibendum justo. Sed porta, lorem id cursus luctus, risus metus ullamcorper libero, ut euismod ante massa sed lorem.</p>
<p>Nunc vel arcu sed tortor elementum sagittis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas ut orci vel dui tincidunt euismod.</p>
<h4>Block: <code><table></code></h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis vel neque ut nisi eleifend aliquet. Aenean ut enim sapien. Praesent ultrices maximus nunc, non mattis sapien dapibus non. Nullam tincidunt interdum nunc, a euismod ligula sollicitudin sollicitudin.</p>
<table class="left">
<caption>
Population in Sweden's three smallest municipalities
</caption>
<thead>
<tr>
<td>Municipality</td>