Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

Set color and direction of text with CSS properties

Following CSS text formatting properties are used to set color and direction of text

Text color

Text-color property is used to set the color of the text.

Code example

/*color hex value(white)*/
.btn-custom {
    color: #fff;
}
/*color name value(green)*/
.btn-success{
    color:green;
}

Text direction

Text direction property is used to set the direction of the text.

Following are text direction CSS values

Ltr :Text direction goes from left-to-right, this is default value.          
Rtl :Text direction goes from right-to-left
Initial:Sets this property to its default value. Read about initial         
Inherit: Inherits this property from its parent element. Read about inherit

Code example

/*Set the text direction to "right-to-left":*/ 
div.right-to-left {
    direction: rtl;
}  

Invalid entry,please enter valid data.

Loading