grid-gap-007-ref.html (1030B)
1 <!DOCTYPE HTML> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html><head> 7 <meta charset="utf-8"> 8 <title>Reference: nested ortogonal writing-mode subgrids</title> 9 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 11 <style> 12 html,body { 13 color:black; background-color:white; font:24px/1 Ahem; padding:0; margin:0; 14 } 15 16 .grid { 17 display:inline-grid; 18 grid:60px auto/100px auto; 19 gap:100px 60px; 20 border:3px solid; 21 background:pink; 22 } 23 span { background:grey; } 24 25 .hl { writing-mode: horizontal-tb; direction:ltr; } 26 .vrl { writing-mode: vertical-rl; direction:ltr; } 27 </style> 28 </head> 29 <body> 30 31 <div class="grid"> 32 <span style="grid-area:1/1; background:lightgrey; width:60px; height:160px"></span> 33 <span style="grid-area:1/1">a</span> 34 <span style="grid-row:2; background:cyan">b</span> 35 <span style="grid-area:2/2" class="vrl">ccc</span> 36 </div> 37 38 </body> 39 </html>