HTML | DOM Style columnWidth Property

The columnWidth property in DOM is used to specify the width of the columns.


  • Return the columnWidth property:
  • Set the columnWidth property: = "auto | length | initial | inherit" 

Property Values:

  • auto: Deafult value. The column width are going to be determined by the browser
  • length: A length that specifies the width of the columns
  • initial: Sets this property to its default value. Read about initial
  • inherit: Inherits this property from its parent element. Read about inherit
  • Example:





    <!DOCTYPE html>
            <h1 style="color:green">GeeksforGeeks</h1>
            <h2>Style columnWidth Property</h2>
            <button onclick="GFGFun()">Click</button>
            <div id="DIVid">
                HTML stands for Hyper Text Markup Language.
              It is used to design web pages using markup language.
              HTML is the combination of Hypertext and 
              Markup language. Hypertext defines the link 
              between the web pages. Markup language is used 
              to define the text document within tag which 
              defines the structure of web pages. HTML is 
              a markup language which is used by the browser
              to manipulate text, images and other content 
              to display it in required format.
                function GFGFun() {
                  //Chrome, Safari, Opera
                    // Firefox





    Supported Browsers: The browsers supported by HTML DOM Style columnWidth Property are listed below:

    • Google Chrome
    • Internet Explorer
    • Firefox MozColumnWidth
    • Apple Safari
    • Opera


    My Personal Notes arrow_drop_up

    Check out this Author's contributed articles.

    If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

    Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

    Article Tags :
    Practice Tags :

    Be the First to upvote.

    Please write to us at to report any issue with the above content.