grid-gap-009-ref.html (791B)
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 orthogonal writing-mode subgrids with percentage row-gap</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:400px/300px; 19 border:3px solid; 20 background:lightgrey; 21 width:300px; 22 height:400px; 23 } 24 span { 25 margin-top:350px; 26 margin-right:115px; 27 background:cyan; 28 } 29 </style> 30 </head> 31 <body> 32 33 <div class="grid"> 34 <span>cc</span> 35 </div> 36 37 </body> 38 </html>