Loading Please Wait...
CSS provides a lots of properties for the text formatting
The color property is used to set color of the text.
We can use color name, RGB, RGBA, HEX, HEXA, HSL, HSLA color values.
p{
color: red;
}
div{
color: rgb(20, 56, 0);
}
The text-align property is used to set horizontal alignment of the text.
p{
text-align: center;
}
div{
text-align: right;
}
The direction property is used to set text direction.
p{
direction: rtl;
}
div{
direction: ltr;
}
The text-decoration property is used to set decoration line of the text.
p{
text-decoration: underline;
}
div{
text-decoration: line-through;
}
The text-transform property is used to set uppercase or lowercase letter of the text.
p{
text-transform: uppercase;
}
div{
text-transform: capitalize;
}
The text-indent property is used to set indentation of the first line of the text.
p{
text-indent: 25px;
}
div{
text-indent: 2rem;
}
The text-shadow property is used to set shadow of the text.
p{
text-shadow: 5px 5px;
}
div{
text-shadow: 10px 0.5rem red;
}
How you feel about this blog:
Share this blog on:
If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com
Contact UsWe are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..
Copyright ©
, Lynxsia IT Solutions, All rights reserved