HTML | DOM Style columnRuleWidth Property Last Updated : 08 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Style columnRuleWidth property in HTML DOM is used to define or determine the width of the rule between the columns. Syntax: It returns the columnRuleWidth property.object.style.columnRuleWidthIt is used to set columnRuleWidth property.object.style.columnRuleWidth = "medium|thin|thick|length| initial|inherit" Property Values: thin: It is used to set a thin rule between the columns.medium: It is used to create a medium width rule between the columns. It is the default width.thick: It creates a thick width rule between the columns.length: It is used to set the width by length. It does not takes negative value.initial: It is used to set columnRuleWidth property to its default value.inherit: This property is inherited from its parent. Return Value: It returns a string that represents the column-rule-width property of the element. Example 1: This example describes the length property value. html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style columnRuleWidth Property </title> <style> #GFG { /* For old Chrome and Safari browsers */ -webkit-column-count:4; -webkit-column-rule: 1px green solid; /* For Firefox browser */ -moz-column-count:4; -moz-column-rule: 1px green solid; -webkit-column-count:4; -webkit-column-rule: 1px green solid; text-align:justify; } </style> </head> <body> <div id = "GFG"> Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course. The course focuses on various MCQ's & Coding question likely to be asked in the interviews & make your upcoming placement season efficient and successful. </div> <p> Click on the button to change the column-rule width </p> <button onclick = "myGeeks()"> Click Here! </button> <script> function myGeeks() { document.getElementById("GFG").style.columnRuleWidth = "10px"; } </script> </body> </html> Output: Before Click on the button: After Click on the button: Example 2: This example describes medium property value. html <!DOCTYPE html> <html> <head> <title> HTML | DOM Style columnRuleWidth Property </title> <style> #GFG { /* For old Chrome and Safari browsers */ -webkit-column-count:4; -webkit-column-rule: 1px green solid; /* For Firefox browser */ -moz-column-count:4; -moz-column-rule: 1px green solid; -webkit-column-count:4; -webkit-column-rule: 1px green solid; text-align:justify; } </style> </head> <body> <div id = "GFG"> Prepare for the Recruitment drive of product based companies like Microsoft, Amazon, Adobe etc with a free online placement preparation course. The course focuses on various MCQ's & Coding question likely to be asked in the interviews & make your upcoming placement season efficient and successful. </div> <p> Click on the button to change the column-rule width </p> <button onclick = "myGeeks()"> Click Here! </button> <script> function myGeeks() { document.getElementById("GFG").style.columnRuleWidth = "medium"; } </script> </body> </html> Output: Before Click on the button: After Click on the button: Supported Browsers: The browser supported by DOM Style columnRuleStyle property are listed below: Google Chrome 50 and aboveEdge 12 and aboveFirefox 52 and aboveInternet Explorer 10 and aboveOpera 11.1 and aboveApple Safari 9 and above Comment More infoAdvertise with us E EnaMotwani Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input Reset Object The Input Reset Object in HTML DOM is used to represent the HTML <input> element with type="reset". This tag is used to access or create the <input> element. This element can be accessed by using getElementById() method. Syntax: document.getElementById("Input_ID"); This Input_ID is assig 2 min read HTML | DOM Style outline Property The Style outline property in HTML DOM is used to set or return all outline properties in one declaration. This property draws a line around an element. It sets or returns the one or more border property in short form. The outline can be set the following properties: outline-widthoutline-styleoutlin 2 min read HTML | DOM Textarea Object The Textarea Object in HTML DOM is used to represent the HTML <textarea> Element. The textarea element can be accessed by using getElementById() method.Syntax: document.getElementById("ID"); Where ID is assigned to the <textarea> element.Property Values: autofocus: It is used to set or r 3 min read HTML | DOM Style animationPlayState Property The HTML DOM Style animationPlayState Property is used to specify whether an animation is running or paused. Syntax : animation-play-state: running|paused|initial|inherit; Return Values: It returns a string that represents the animation-play-state property of an element Property Values: running: Thi 3 min read HTML | DOM Map Object The Map Object in HTML DOM is used to create and access the <map> element. The Map Object create the portion of image clickable and accessible.Syntax: It is used to return Map object.var x = document.getElementById("myMap");It is used to create Map Object.var x = document.createElement("MAP"); 2 min read HTML | DOM Style backgroundImage Property The DOM Style backgroundImage Property is used to set or return the background image of an element. Syntax: To get the backgroundImage propertyobject.style.backgroundImageTo set the backgroundImage propertyobject.style.backgroundImage = "image | none | initial | inherit" Return Values: It returns a 3 min read HTML | DOM TableRow Object The TableRow Object in HTML DOM is used to represent the HTML <tr> element. The <tr> element can be accessed by using getElementById() method. Syntax: document.getElementById("id"); The tr element can be created by using the document.createElement() method. Syntax: document.createElement 3 min read HTML DOM Style order Property The HTML DOM Style order property specifies the order of a flexible element relative to the rest of the flexible elements inside the same container element. SyntaxSet the order property.object.style.order = "number | initial | inherit"Return the order property.object.style.orderReturn ValuesIt retu 1 min read HTML | DOM Embed Object The Embed Object in HTML DOM is used to represent the <embed> element. The <embed> element can be accessed by using getElementById() method. Note: This object is new in HTML 5. Property Values: height: It sets or returns the value of the height attribute. src: It sets or returns the valu 2 min read HTML DOM Anchor Object The Anchor Object in HTML DOM is used to represent the <a> element. The anchor element can be accessed by using getElementById() method. Syntax: document.getElementById("ID"); Where ID is assigned to the anchor tag. Property Values: Property Description charset Set or return the character set. 2 min read Like