Dino Geek, try to help you

How to make a multi-column layout in CSS?


CSS multi-column layout allows easy definition of multiple columns of text. Below are a few CSS properties to make a multi-column layout:

1. column-count: The ‘column-count’ property specifies the number of columns an element should be divided into.

Example:
```
div { column-count: 3;
}
```

1. column-gap: The ‘column-gap’ property specifies the gap between the columns.

Example:
```
div { column-count: 3; column-gap: 40px;
}
```

1. column-rule: The ‘column-rule’ property specifies a rule between columns.

Example:
```
div { column-count: 3; column-gap: 40px; column-rule: 4px double blue;
}
```

1. column-width: The ‘column-width’ property specifies the width of the columns.

Example: \`\`\`css
div { column-width: 100px;
}
\`\`\`
Use this property when you want the browser to decide the number of columns based on the width you set.

NOTE: The browser automatically adjusts the column widths and the column count based on the container width, but you can also set these properties explicitly.

Remember, the multi-column layout properties are not fully supported in all browsers. Make sure to check the compatibility of these properties with different browsers.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use