WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

CSS3 Multiple Columns


CSS3 Multi-section Layout

The CSS3 multi-section format permits simple meaning of different segments of content - simply like in newspapers:

Raja Ram Mohan Roy is considered as the pioneer of present day Indian Renaissance for the amazing changes he got the eighteenth and nineteenth century India. Among his endeavors, the annulment of the merciless and cruel Sati Pratha was the most unmistakable. His endeavors were additionally instrumental in annihilating the purdah framework and tyke marriage. In 1828, Ram Mohan Roy shaped the Brahmo Samaj, joining the Bhramos in Calcutta, a gathering of individuals, who had no confidence in symbol revere and were against the position limitations. The title 'Raja' was offered to him by the Mughal ruler Akbar II, in 1831. Roy visited England as a minister of the Mughal King to guarantee that Bentick's direction restricting the act of Sati was not upset. He passed on of meningitis in 1833 while living in Bristol, England.


Browser Support

The numbers in the table indicate the principal program form that completely underpins the property.

Numbers pursued by - webkit-or - moz-determine the principal form that worked with a prefix.

Property
column-count 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit-
11.1
column-gap 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit-
11.1
column-rule 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit-
11.1
column-rule-color 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit
11.1
column-rule-style 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit
11.1
column-rule-width 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit
11.1
column-width 4.0 - webkit- 12.0 10.0 2.0 - moz- 3.1 - webkit- 15.0 - webkit
11.1

CSS3 Multi-section Properties

In this section you will find out about the accompanying multi-segment properties:

  • column-rule-width
  • column-rule-color
  • column-rule
  • column-span
  • column-width
  • column-count
  • column-gap
  • column-rule-style

CSS3 Create Multiple Columns

The column-count property determines the quantity of segments a component ought to be separated into.

The following precedent will isolate the content in the <div> component into 3 columns: 

Example

div {
    - webkit-segment check: 3;/* Chrome, Safari, Opera */
    - moz-segment check: 3;/* Firefox */
    segment check: 3;
}
Try it yourself »

CSS3 Specify the Gap Between Columns

The column-gap property indicates the hole between the columns.

The following model determines a 40 pixels hole between the columns:

Example

div {
    - webkit-segment hole: 50px;/* Chrome, Safari, Opera */
    - moz-segment hole: 50px;/* Firefox */
    segment hole: 50px;
}
Try it yourself »

CSS3 Column Rules

The column-rule-style property indicates the style of the standard between columns:

Example

div {
    - webkit-segment rule-style: strong;/* Chrome, Safari, Opera */
    - moz-section rule-style: strong;/* Firefox */
    segment rule-style: solid;
}
Try it yourself »

The column-rule-width property determines the width of the standard between columns:

Example

div {
    - webkit-section rule-width: 1px;/* Chrome, Safari, Opera */
    - moz-segment rule-width: 1px;/* Firefox */
    section rule-width: 1px;
}
Try it yourself »

The column-rule-color property indicates the shade of the standard between columns:

Example

div {
    - webkit-segment rule-shading: lightblue;/* Chrome, Safari, Opera */
    - moz-section rule-shading: lightblue;/* Firefox */
    segment rule-shading: lightblue;
}
Try it yourself »

The column-rule property is a shorthand property for setting all the segment rule-* properties above.

The following model sets the width, style, and shade of the standard between columns:

Example

div {
    - webkit-segment rule: 1px strong lightblue;/* Chrome, Safari, Opera */
    - moz-segment rule: 1px strong lightblue;/* Firefox */
    segment rule: 1px strong lightblue;
}
Try it yourself »

Specify How Many Columns an Element Should Span

The column-span property determines what number of segments a component should range across.

The following model indicates that the <h2> component should length over all columns:

Example

h2 {
    - webkit-segment range: all;/* Chrome, Safari, Opera */
    segment range: all;
}
Try it yourself »

Specify The Column Width

The column-width property indicates a recommended, ideal width for the columns.

The following model determines that the recommended, ideal width for the sections ought to be 100px:

Example

div {
    - webkit-segment width: 120px;/* Chrome, Safari, Opera */
    segment width: 120px;
}
Try it yourself »