- 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
Specify the gap between the columns with CSS
Use the column-gap property to set the gap between the columns. You can try to run the following code to implement the column-gap property, with value 50px:
Example
<!DOCTYPE html> <html> <head> <style> .demo { column-count: 4; column-gap: 50px; } </style> </head> <body> <div class = "demo"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </body> </html>
- Related Articles
- Set the size of the gap between CSS grid columns
- Specify width for the columns with CSS
- How to specify the size of the gap between rows in CSS Grid
- How to set the gap between the columns with JavaScript?
- Specify the number of columns in a CSS grid layout
- Specify the background image with CSS
- How to specify the number of columns an element should be divided into with CSS
- Set the style of the rule between columns with CSS
- Set the width of the rule between columns with CSS
- Set the color of the rule between columns with CSS
- Specify the size of the background images with CSS
- Specify the speed curve of the animation with CSS
- Specify position of the background images with CSS
- Specify the color of the cursor in elements with CSS
- Specify the left padding of an element with CSS

Advertisements