CSS Text

CSS Text

Styling of Text are of types:-

  • Text Color
  • Font Size
  • Font Family
  • Font Style
  • Text Allignment
  • Text Decoration
  • Text Transformation
  • Text Indentation

  • Text Color

    CSS Color property is used to change the color of text.The value of color can be HEX value,RGB value,name.

    p
    {
    color:blue;
    }
    



    Font Size

    CSS font-size property used to increase the size of text

    p
    {
    font-size:30px;
    }
    



    Font Family

    CSS font-family property is used to change the font type of the text.The value font-family is name of fonts.

    p
    {
    font-family:Helvetica;
    }
    



    Font Style

    CSS font-style property is used to change the font style of the text.

    p
    {
    font-style:italic;
    }
    



    Text Allignment

    CSS text-allign property is used to allign text in different horizontal types its value can be left,right,center,justify((like in newspapers).

    p
    {
    text-allign:center;
    }
    



    Text Decoration

    CSS text-decoration property is used to set or remove the decoration of the text its value can be none,overline,line-through,underline.

    p
    {
    text-decoration:underline;
    }
    



    Text Transformation

    CSS text-transform property is used to change the text to uppercase,lowercase or capitalize the first letter of each word its value can be uppercase,lowercase,capitalize.

    p
    {
    text-transform:capitalize;
    }
    



    Text Indentation

    CSS text-indent property is used to specify the indentation of the first line of a text.

    p
    {
    text-indent:30px;
    }
    
    PrevNext

    Subscribe Our Newsletter And Get Tutorials
    And Offers Via Email

    Subscribe Our Newsletter And Get Tutorials And Offers Via Email