HTML FORMS /
Grid
/
Grid Simple
<!doctype html> <title>Example</title> <style> #grid { display: grid; grid: auto auto / auto auto; grid-column-gap: 10px; grid-row-gap: 10px; } #grid > div { background-color: #303f9f; color: white; font-size: 25px; padding: 50px; } </style> <div id="grid"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> </div>