CSS display grid

You are Here:


HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> .parent{ display: grid; grid: 50px / auto auto auto; grid-gap: 5px; background-color: DarkBlue; padding: 3px; } .parent > div{ background-color: rgba(255, 255, 255, 0.8); text-align: center; padding: 15px 0; } </style> </head> <body> <h1>CSS display: grid;</h1> <div class="parent"> <div>innerDiv 1</div> <div>innerDiv 2</div> <div>innerDiv 3</div> </div> </body> </html>


Using CSS

element{ display: grid; }

Using Javascript



Hi Developers, we almost covered 98.7% of CSS Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in CSS.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author