AmitDiwan has Published 11365 Articles

HTML DOM Style listStyleImage Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 11:04:40

26 Views

The HTML DOM Style listStyleImage property is used for setting or returning an image as a list item marker.Following is the syntax for −Setting the listStyleImage property −object.style.listStyleImage = "none|url|initial|inherit"The above properties are explained as follows −ValueDescriptionnoneThisis the default value and displays no image.urlForspecifying the image path.initialForsetting this property to ... Read More

HTML DOM Style listStyle Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 10:59:12

41 Views

The HTML DOM Style listStyle property is used for setting or returning the three properties named list-style-type, list-style-position and list-style-image.Following is the syntax for −Setting the listStyle property −object.style.listStyle = "type position image|initial|inherit"The above properties are explained as follows −ParameterDescriptiontypeFordefining the list-item marker type.positionForsetting the list-item marker positionsimageForspecifying the image ... Read More

HTML DOM Style letterSpacing Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 10:34:57

21 Views

The HTML DOM Style letterSpacing property is used for setting or getting the characters space between text.Following is the syntax for −Setting the letterSpacing property −object.style.letterSpacing = "normal|length|initial|inherit"The above properties are explained as follows −ValueDescriptionnormalThisis the default property and sets the character space to normal.lengthForspecifying the character space in length ... Read More

HTML DOM Style left Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:58:28

351 Views

The HTML DOM Style left property is used for setting the or returning a positioned element left position. To position an element, you have to set its position property to relative, absolute or fixed.Following is the syntax for −Setting the left property −object.style.left = "auto|length|%|initial|inherit"The above properties are explained as ... Read More

HTML DOM Style justifyContent Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:53:30

19 Views

The HTML DOM justifyContent property is used for aligning flex items horizontally on the main axis when it doesn’t take all the available space.Following is the syntax for −Setting the justifyContent property −object.style.justifyContent = "flex-start|flex-end|center|space-between|space-around|initial|inherit"The above properties are explained as follows −ValueDescriptionflex-startThispositions the items at the container beginning and is ... Read More

HTML DOM Style isolation Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:49:28

97 Views

The HTML DOM style isolation property is for defining if the element must create a new stacking content or not. This property is mainly used for preventing the element from blending in the background by creating a separate stack element.Following is the syntax for −Setting the isolation property −object.style.isolation = ... Read More

HTML DOM Style height Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:41:04

106 Views

The HTML DOM Style height property is used for setting or returning the height of an element.Following is the syntax for −Setting the height property −object.style.height = "auto|length|%|initial|inherit"The above properties are explained as follows −ValueDescriptionAutoThisis the default value and the height set by the browser.LengthForsetting the browser height in length ... Read More

HTML DOM Style fontWeight Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:37:24

103 Views

The HTML DOM fontWeight property is used for setting or returning the thickness of text characters of an element.Following is the syntax for −Setting the fontWeight property −object.style.fontWeight = "normal|lighter|bold|bolder|value|initial|inherit"The above properties are explained as followsValueDescriptionnormalThisis the default and doesn’t make any changes to font.lighterFontis lighterboldSetsthe font to bold which ... Read More

HTML DOM Style fontVariant Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:32:06

17 Views

The HTML DOM Style fontVariant property is used for setting or returning if the font should be converted to small caps or not. In small caps all the lowercase letters are converted to uppercase with their size same as lowercase letters. Uppercase letters remain unaffected.Following is the syntax for −Setting ... Read More

HTML DOM Style fontStyle Property

AmitDiwan

AmitDiwan

Updated on 24-Oct-2019 08:27:25

33 Views

The HTML DOM Style fontStyle property is used for setting or returning the font style of the text. It is used to specify normal, italic or oblique style for an element’s text.Following is the syntax for −Setting the fontStyle property −object.style.fontStyle = "normal|italic|oblique|initial|inherit"Let us look at an example for the ... Read More

Advertisements