Text Style Color in Css

Text Color:-

The shading property is utilized to set the shade of the content.With CSS, a shading is frequently determined by:

a shading name – like “red”

a HEX esteem – like “#ff0000”

a RGB esteem – like “rgb(255,0,0)”

Take a gander at CSS Color Values for a total rundown of conceivable shading esteems.
The default content shading for a page is characterized in the body selector.

body { color: lightpink;}

h1 { color: lightgreen;}

Alignment of Text:-

The text-align property is utilized to set the even arrangement of a content.

A content can be left or right adjusted, focused, or advocated.

The accompanying illustration indicates focus adjusted, and left and right adjusted content (left arrangement is default if content bearing is left-to-right, and right arrangement is default if content heading is all in all correct to-left):

h1 { text-align: center;}

h2 { text-align: left;}

h3 { text-align: right;}

At the point when the text-align property is set to “legitimize”, each line is extended with the goal that each line has measure up to width, and the left and right edges are straight (like in magazines and daily papers):

div { text-align: justify;}

Text Decoration in Css:-

The text-decoration property is utilized to set or expel adornments from content.

The esteem text-decoration: none; is regularly used to expel underlines from joins

a { text-decoration: none;}The other text-decoration values are used to decorate text:h1 { text-decoration: overline;}

h2 { text-decoration: line-through;}

h3 { text-decoration: underline;}

Text Transformation

The text-transform property is used to specify uppercase and lowercase letters in a text.

It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word:

p.uppercase { text-transform: uppercase;}

p.lowercase { text-transform: lowercase;}

p.capitalize { text-transform: capitalize;}

Text Indentation

The text-indent property is used to specify the indentation of the first line of a text:

p { text-indent: 50px;}

Letter Spacing

The letter-spacing property is used to specify the space between the characters in a text.

The following example demonstrates how to increase or decrease the space between characters:

h1 { letter-spacing: 3px;}

h2 { letter-spacing: -3px;}

Text Shadow

The text-shadow property adds shadow to text.

The following example specifies the position of the horizontal shadow (3px), the position of the vertical shadow (2px) and the color of the shadow (red):

h1 { text-shadow: 3px 2px red;}

All CSS Text Properties

Property

Description

color

Sets the color of text

direction

Specifies the text direction/writing direction

letter-spacing

Increases or decreases the space between characters in a text

line-height

Sets the line height

text-align

Specifies the horizontal alignment of text

text-decoration

Specifies the decoration added to text

text-indent

Specifies the indentation of the first line in a text-block

text-shadow

Specifies the shadow effect added to text

text-transform

Controls the capitalization of text

text-overflow

Specifies how overflowed content that is not displayed should be signaled to the user

unicode-bidi

Used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document