Category: HTML News/Blogs

  • CSS text-decoration-line Property

    The text-decoration-line property specifies the kind of line which will be used for text decoration. The text-decoration-line property is one of the CSS3 properties. The text-decoration-line property accepts one or more values. Initial Value none Applies to All elements. It also applies to ::first-letter and ::first-line. Inherited No. Animatable No. Version CSS3 DOM Syntax object.style.textDecorationLine = “overline underline”; Syntax Example of the text-decoration-line property: Result Example of…

  • CSS text-decoration-color Property

    The text-decoration-color property is used to set the color of the text decoration. You can choose colors from here HTML colors. The colors can be applied to such decorations, as overlines, underlines, and wavy lines, in the scope of the value of this property. The text-decoration-color property is one of the CSS3 properties. Initial Value currentColor Applies to All elements. It…

  • CSS text-decoration Property

    The text-decoration property is used to set the decoration of the text. In CSS3, it is a shorthand for the following properties: If the value of one of these properties is absent, the default value will automatically be set. The text-decoration-line is required. In CSS1 specification the text-decoration was not a shorthand and had the following values: Initial Value none currentColor…

  • CSS text-combine-upright Property

    The text-combine-upright property specifies the combination of characters into the space of a single character. If the combined text is wider than 1em, the user agent should fit the contents within 1em. Initial Value none Applies to Non-replaced inline elements. Inherited Yes. Animatable No. Version CSS1 DOM Syntax object.style.textCombineUpright = “all”; Syntax Example of the text-combine-upright property: Result Values…

  • CSS text-align-last Property

    The CSS text-align-last property sets the alignment of the last line of the text. It is one of the CSS3 properties. The text-align-last property sets the alignment for all last lines within the selected element. If a <div> with three paragraphs in it, the text-align-last will apply to the last line of each of the paragraphs. Initial Value auto Applies to Block containers. Inherited…

  • CSS text-align Property

    The text-align property is used for aligning the inner content of a block element. You can use the margin property to center the element. Initial Value left if direction is “ltr”, right if direction is “rtl” Applies to Block containers. Inherited Yes Animatable No. Version CSS1 DOM Syntax object.style.textAlign = “right”; Syntax Example of the text-align property with the “right” and…

  • CSS table-layout Property

    The table-layout property specifies the algorithms which are used to lay out table cells, rows and columns. The table-layout property specifies two algorithms to lay out tables: fixed and automatic. When the “automatic” table layout is specified, the table’s width is set by the width of its columns. When the “fixed” table layout is specified, the table’s layout uses…

  • CSS tab-size Property

    The tab-size property is used to set the width of the tab character (U+0009) displaying on the page. The tab-size property is one of the CSS3 properties. It is only visible for <textarea> and <pre> HTML tags. Initial Value 8 Applies to Block containers. Inherited Yes. Animatable No. Version CSS3 DOM Syntax object.style.tabSize = “20”; Syntax Example of the tab-size property: Result In the given example,…

  • CSS stroke-width Property

    The CSS stroke-width property specifies the width of the stroke on the element. The presentation attribute will be overridden: e.g. <path stroke-width=”3px” … />. The inline style won’t be overridden: e.g. <path style=”stroke-width: 3px;” … />. Initial Value 1 Applies to Shapes and text content elements. Inherited Yes. Animatable No. Version SVG 1.1 Specification DOM Syntax Object.strokeWidth…

  • CSS stroke-linecap Property

    The stroke-linecap property sets the starting and ending points of a border on element. The presentation attribute will be overridden: e.g. <path stroke-linecap=”round” … />. The inline style won’t be overridden: e.g. <path style=”stroke-linecap: round;” …/>. Initial Value butt Applies to Shapes and text content elements. Inherited Yes. Animatable No. Version SVG 1.1 Specification DOM Syntax Object.strokeLinecap…