multicol-width-count-002

column-count and column-width (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Multi-column Layout Test: column-count and column-width (basic)</title>
 5   <link rel="author" title="Opera Software ASA" href="http://www.opera.com/">
 6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2013-08-23 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cc" title="3.2 'column-count'">
 8   <link rel="match" href="reference/multicol-count-002-ref.htm">
 9   <meta name="flags" content="ahem">
10   <style type="text/css">
11   html {background-color: white;}
12 
13   body
14   {
15   background-color: black;
16   font: 1.25em/1 Ahem;
17   padding-right: 1em;
18   width: 20em;
19   }
20 
21   div
22   {
23   background-color: yellow;
24   color: black;
25 
26   column-count: 4;
27   column-gap: 0;
28   column-width: 5em;
29   }
30   </style>
31  </head>
32  <body>
33   <div>55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1 333 55555 55555 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1&nbsp;&nbsp;&nbsp; 1 22&nbsp; 1 22&nbsp; 1 22&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555 55555 1&nbsp;&nbsp;&nbsp; 1 333 1 333 1&nbsp;&nbsp;&nbsp; 4444 4444 1&nbsp;&nbsp;&nbsp; 55555
34   </div>
35  </body>
36 </html>