YouTip LogoYouTip

Prop Style Columnfill

HTML DOM Style columnFill Property

HTML DOM Style columnFill Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference Manual

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

<source>

HTML DOM Table Object

Style columnFill Property

Style Object Reference Manual Style Object

Example

Specify how to fill the columns:

document.getElementById("myDIV").style.columnFill="auto";

Definition and Usage

The columnFill property specifies how to fill the columns (whether to balance).


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all major browsers do not support the columnFill property.


Syntax

Return the columnFill property:

object.style.columnFill

Set the columnFill property:

object.style.columnFill="balance|auto|initial|inherit"

Property Values

Value Description
balance Default value. Balances the columns. The browser should minimize the difference in column lengths.
auto Fills the columns sequentially, resulting in columns of different lengths.
initial Sets this property to its default value. See initial.
inherit Inherits this property from its parent element. See inherit.

Technical Details

Default value: balance
Return value: A string representing the element's column-fill property.
CSS Version: CSS3

Related Articles

CSS3 Tutorial: CSS3 Multiple Columns

CSS Reference Manual: column-fill Property


Style Object Reference Manual Style Object

<source>

HTML DOM Table Object

ByteDance Coding Plan supports Doubao, GLM, DeepSeek, Kimi, MiniMax, and other mainstream large models, officially supplied, stable and reliable. Configuration Guide Β₯9.9/month Subscribe Now

← Prop Style ColumngapProp Style Columncount β†’