- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of CSS grid-row-gap property
Set gap between Grid rows with CSS. You can try to run the following code to implement the grid-row-gap property.
Example
<!DOCTYPE html> <html> <head> <style> .container { display: grid; background-color: green; grid-template-columns: auto auto; padding: 20px; grid-column-gap: 20px; grid-row-gap: 20px; } .ele { background-color: orange; border: 2px solid gray; padding: 35px; font-size: 30px; text-align: center; } </style> </head> <body> <h1>Game Board</h1> <div class = "container"> <div class = "ele">1</div> <div class = "ele">2</div> <div class = "ele">3</div> <div class = "ele">4</div> <div class = "ele">5</div> <div class = "ele">6</div> </div> </body> </html>
- Related Articles
- Usage of CSS grid-gap property
- Usage of CSS grid-column-gap property
- Usage of CSS grid-row-end property
- Usage of CSS grid-row-start property
- Usage of CSS grid property
- CSS grid-row Property
- Usage of CSS grid-column-start property
- Usage of CSS grid-auto-rows property
- Usage of CSS grid-column-end property
- Usage of CSS grid-auto-columns property
- Usage of CSS grid-auto-flow property
- Adjust gap size for CSS Grid
- Animate CSS column-gap property
- Set the size of the gap between CSS grid columns
- Usage of CSS visibility property

Advertisements