Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .span-container { display: grid; grid-template-columns: auto auto auto auto; grid-gap: 10px; background-color: #888; padding: 10px; margin-top: 20px; } .span-container > div { background-color: #fff; text-align: center; padding: 20px 0; font-size: 30px; } .span-box1 { grid-column-start: span 2; } </style> </head> <body> <h2>Grid-column-start property example</h2> <div class="span-container"> <div class="span-box1">1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> </div> </body> </html>