AmitDiwan has Published 11365 Articles

HTML DOM Style boxSizing Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:32:49

20 Views

The HTML DOM boxSizing property is used to specify the way an element’s total width and height is calculated. It can have "border-box" or "content-box" as values.Following is the syntax for −Setting the boxSizing property −object.style.boxSizing = "content-box|border-box|initial|inherit"The property values are explained as follows −ValueDescriptioncontent-boxThis is the default value and ... Read More

HTML DOM Style boxShadow Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:28:39

42 Views

The HTML DOM box-shadow property is used for getting or setting the shadow in or around the frame of an element.Following is the syntax for −Setting the boxShadow property −box-shadow: none|h-offset v-offset blur spread color |inset|initial|inherit;The property values are explained as follows −ValueDescriptionnoneThis is the default value and displays no ... Read More

HTML DOM Style borderWidth Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:21:58

34 Views

The HTML DOM borderWidth property is used as a shorthand for getting or setting the border width properties for an element. It takes from one to 4 values in the following ways −It assigns border-width in the clockwise direction if all 4 values are given.If only one value is given ... Read More

HTML DOM Style borderTopWidth Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:16:39

20 Views

The HTML DOM borderTopWidth property is used for setting or getting the Top border width for an element.Following is the syntax for −Setting the borderTopWidth property −object.style.borderTopWidth = "thin|medium|thick|length|initial|inherit"The property values are explained as follows −ValueDescriptionThinThis specifies a thin border.MediumThis specifies the medium border and is the default value.ThickThis specifies ... Read More

HTML DOM Style borderTopStyle Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:12:11

20 Views

The HTML DOM borderTopStyle property is used for setting or returning the Top border style for an element.Following is the syntax for −Setting the borderTopStyle property −object.style.borderTopStyle = valueThe above properties are explained as follows −ValueDescriptionNoneThis is the default value specifying no border.HiddenThis is same as "none" but will still ... Read More

HTML DOM Style borderTopColor Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 07:02:55

21 Views

The HTML DOM borderTopColor property is used to get or set the color for top border of an element.Following is the syntax for −Setting the borderTopColor property −object.style.borderTopColor = "color|transparent|initial|inherit"The above properties are explained as follows −ValueDescriptioncolorFor specifying the Top border color. Its default color is set to black.transparentThe makes ... Read More

HTML DOM Style borderTop Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 06:55:50

27 Views

The HTML DOM borderTop property is used as a shorthand for getting or setting the Top border properties for an element. The borderTop property contains border-Top-width, border-Top-style, border-Top-color.Following is the syntax for −Setting the borderTop property:object.style.borderTop = "width style color|initial|inherit"The above properties are explained as follows −ParameterDescriptionwidthFor setting the Top ... Read More

HTML DOM Style borderStyle Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 06:49:49

38 Views

The HTML DOM borderStyle property is used as a shorthand for getting or setting the border style properties for an element. It takes from one to 4 values in the following ways −It assigns border-styles in the clockwise direction if all 4 values are given.If only one value is given ... Read More

HTML DOM Style borderSpacing Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 06:41:57

36 Views

The HTML DOM borderSpacing property is used for setting or returning the space between table cells.Following is the syntax for −Setting the borderSpacing property −object.style.borderSpacing = "length length|initial|inherit"The above properties are explained as follows −ValueDescriptionlength lengthIt is used for specifying the space between cells. If only one value is given ... Read More

HTML DOM Style borderRightWidth Property

AmitDiwan

AmitDiwan

Updated on 23-Oct-2019 06:30:04

42 Views

The HTML DOM borderRightWidth property is used for setting or getting the Right border width for an element.Following is the syntax for −Setting the borderRightWidth property −object.style.borderRightWidth = "thin|medium|thick|length|initial|inherit"The property values are explained as follows −ValueDescriptionthinThis specifies a thin border.mediumThis specifies the medium border and is the default value.thickThis specifies ... Read More

Advertisements