place-content-shorthand-007.html (697B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Box Alignment: place-content shorthand with fallback</title> 4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 5 <link rel="help" href="https://drafts.csswg.org/css-align/#propdef-place-content"> 6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1430622"> 7 <link rel="match" href="place-content-shorthand-007-ref.html"> 8 <style> 9 div { 10 display: grid; 11 grid: 200px / 200px; 12 width: 400px; 13 height: 400px; 14 background: blue; 15 place-content: end space-evenly; 16 } 17 span { 18 background: green; 19 } 20 </style> 21 Should see a green square centered and at the bottom of the blue square. 22 <div><span></span></div>