The CSS multi-column layout allows easy definition of multiple columns of text - just like in newspapers:
Welcome to AIT: Your launchpad to a future built on innovation and empowered by knowledge. Step into AIT: Where information transforms into inspiration, and technology fuels your limitless potential. At AIT, we don't just teach technology; we ignite the minds that will redefine tomorrow's digital landscape.
Welcome to the Academy of Information Technology: Begin your journey as an architect of the digital age. AIT: Crafting the next generation of tech visionaries, one line of code and one brilliant idea at a time.
Here are a few more creative and inspiring welcome paragraphs, each about 4-5 lines long, perfect for AIT – Academy of Information Technology: Option 1 (Focus on Journey & Transformation): Welcome to AIT – Academy of Information Technology, where your digital journey truly begins.
CSS Multi-column Properties
In this chapter you will learn about the following multi-column properties:
• column-count
• column-gap
• column-rule-style
• column-rule-width
• column-rule-color
• column-rule
• column-span
• column-width
CSS Create Multiple Columns
The column-count
property specifies the number of columns an element should be divided into.
The following example will divide the text in the <div>
element into 3 columns:
The column-gap
property specifies the gap between the columns.
The following example specifies a 40 pixels gap between the columns:
The column-rule-style
property specifies the style of the rule between columns:
The column-rule-width
property specifies the width of the rule between columns:
The column-rule
property is a shorthand property for setting all the column-rule-*
properties above.
The following example sets the width, style, and color of the rule between columns:
The column-span
property specifies how many columns an element should span across.
The following example specifies that the <h2>
element should span across all columns:
The column-width
property specifies a suggested, optimal width for the columns.
The following example specifies that the suggested, optimal width for the columns should be 100px
:
The following table lists all the multi-columns properties:
Property | Description |
---|---|
column-count | Specifies the number of columns an element should be divided into |
column-fill | Specifies how to fill columns |
column-gap | Specifies the gap between the columns |
column-rule | A shorthand property for setting all the column-rule-* properties |
column-rule-color | Specifies the color of the rule between columns |
column-rule-style | Specifies the style of the rule between columns |
column-rule-width | Specifies the width of the rule between columns |
column-span | Specifies how many columns an element should span across |
column-width | Specifies a suggested, optimal width for the columns |
columns | A shorthand property for setting column-width and column-count |