HTML DOM Style columnFill Property Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The HTML DOM Style columnFill property determines how content is distributed into columns in a multi-column layout. Values like auto or balance control whether columns are filled sequentially or balanced in height. HTML DOM Style columnFill Property SyntaxTo get the columnFill propertyobject.style.columnFillTo set the columnFill propertyobject.style.columnFill= "balance|initial|auto|inherit"HTML DOM Style columnFill Property Valuesbalance: it balances columns(Default).auto: Columns will have different lengths & filled sequentially.initial: sets the value to default.inherit: Inherit value from parent.HTML DOM Style columnFill Property Example: In this example, we use the HTML DOM Style columnFill property to adjust content distribution in multi-column layouts. JavaScript triggers set the property to "balance" or "auto". html <!DOCTYPE html> <html> <head> <title>HTML | DOM Style columnFill Property</title> <style> #container { column-count: 3; column-gap: 20px; height: auto; column-fill: auto; padding-top: 20px; } .root { width: 90%; padding: 10px; } button { padding: 10px 20px; background-color: #0056b3; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: skyblue; } </style> </head> <body> <div class="root"> <h1>HTML DOM Style columnFill Property</h1> <div class="mybtn"> <button onclick="setColumnFill('balance')">Set to Balance</button> <button onclick="setColumnFill('auto')">Set to Auto</button> </div> <div id="container"> <p> HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. HTML is a combination of Hypertext and Markup language. Hypertext defines the link between web pages. A markup language is used to define the text document within the tag which defines the structure of web pages. This language is used to annotate (make notes for the computer) text so that a machine can understand it and manipulate text accordingly. </p> </div> </div> <script> function setColumnFill(fillMode) { document.getElementById("container").style.columnFill = fillMode; } </script> </body> </html> Output: HTML |DOM Style columnFill Property Example OurputHTML DOM Style columnFill Property Example ExplanationIn the above example HTML DOM Style columnFill controls content distribution in multi-column layouts.JavaScript functions dynamically set columnFill to "balance" or "auto".Adjustment of columnFill enhances visual consistency in multi-column designs.JavaScript triggers ensure real-time modification of column distribution, improving layout adaptability.Visual Consistency: Ensures balanced layout, reducing height discrepancies between columns.Note: The CCSS3 column-fill Property is supported in "13.0 -moz-". HTML DOM Style columnFill Property Supported Browsers: Google Chrome 50 and aboveEdge 12 and aboveInternet Explorer 10 and aboveFirefox 52 and aboveOpera 37 and aboveSafari 9 and above Create Quiz Comment A AkshayGulati Follow 0 Improve A AkshayGulati Follow 0 Improve Article Tags : Web Technologies HTML HTML-DOM Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like