CSS3 Multiple Columns

## CSS Basic

CSS HOME CSS Introduction CSS Syntax CSS Id & Class CSS How To CSS Backgrounds CSS Text CSS Fonts CSS Links CSS Lists CSS Tables

## CSS Box Model

CSS Box Model CSS Border CSS Outline CSS Margin CSS Padding

## CSS Advanced

CSS Grouping/Nesting CSS Dimension CSS Display CSS Positioning CSS Floating CSS Align CSS Pseudo-class CSS Pseudo-element CSS Navigation Bar CSS Image Gallery CSS Image Opacity CSS Image Sprites CSS Media Types CSS Attr Selectors

## CSS3 Tutorial

CSS3 Introduction CSS3 Borders CSS3 Backgrounds CSS3 Gradients CSS3 Text Effects CSS3 Fonts CSS3 2D Transforms CSS3 3D Transforms CSS3 Transitions CSS3 Animations CSS3 Multiple Columns CSS3 User Interface CSS Summary

## CSS Examples

CSS Examples CSS Quiz CSS Certificate

## CSS References

CSS Reference CSS Selectors CSS Reference Aural CSS Web Safe Fonts CSS Units CSS Colors CSS Color Values CSS Color Names CSS Color HEX

# CSS3 Multiple Columns

« Previous
Next Chapter »

## CSS3 Multiple Columns

With CSS3, you can create multiple columns for laying out text - like in newspapers!

In this chapter you will learn about the following multiple column properties:

- column-count
- column-gap
- column-rule

## Browser Support

Property | Browser Support
--- | ---
column-count |  |  |  |  |
column-gap |  |  |  |  |
column-rule |  |  |  |  |

Internet Explorer 10 and Opera supports multiple columns properties.

Firefox requires the prefix -moz-.

Chrome and Safari requires the prefix -webkit-.

Note: Internet Explorer 9, and earlier versions, does not support the multiple columns properties.

## CSS3 Create Multiple Columns

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

## Example

Divide the text in a div element into three columns:

div
{
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */
column-count:3;
}
Try it yourself »

## CSS3 Specify the Gap Between Columns

The column-gap property specifies the gap between the columns:

## Example

Specify a 40 pixels gap between the columns:

div
{
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
column-gap:40px;
}
Try it yourself »

## CSS3 Column Rules

The column-rule property sets the width, style, and color of the rule between columns.

## Example

Specify the width, style and color of the rule between columns:

div
{
-moz-column-rule:3px outset #ff00ff; /* Firefox */
-webkit-column-rule:3px outset #ff00ff; /* Safari and Chrome */
column-rule:3px outset #ff00ff;
}
Try it yourself »

## CSS3 Multiple Columns Properties

Property | Description | CSS
--- | --- | ---
column-count | Specifies the number of columns an element should be divided into | 3
column-fill | Specifies how to fill columns | 3
column-gap | Specifies the gap between the columns | 3
column-rule | A shorthand property for setting all the column-rule-* properties | 3
column-rule-color | Specifies the color of the rule between columns | 3
column-rule-style | Specifies the style of the rule between columns | 3
column-rule-width | Specifies the width of the rule between columns | 3
column-span | Specifies how many columns an element should span across | 3
column-width | Specifies the width of the columns | 3
columns | A shorthand property for setting column-width and column-count | 3

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE