007 | css tags > text formatting

1K 13 5
                                    


007 | text formatting

NOTE: YOU HAVE TO GO TO THE THREAD FOR YOU TO UNDERSTAND THE LESSONS. 

  This is on post #10 to #14 or you could visit the external link below to directly go to the post.

  

The text is styled with text formatting properties. We need to use a container for text formatting. <div> is a good container for large bodies of texts, which is commonly used. <span> is more on editing color texts, font sizes, etc. 

What is a font? 

a font is a style/design of a text.

Font Colour Property

It is used in changing the text's colour. Since it's a css tag, you'll have to use a container.


Font-Family Property

It is used to change the font's design/style. It needs web-safe font to work.


Here are some web safe fonts I can recommend:

century gothic

arial

verdana

courier 

impact 

comic sans

times new roman

consolas


Font Size Property

The font-size property sets the size of the text.This is a px value.


Letter-spacing property

Letter spacing is used to make a gap between letter by letter.


Line-height property

Line-height is used to make a gap between a line by line.


Text Alignment Property

It is used in making bodies of text go centered, or aligned to the left or right, or justified.


Text Transformation Property

The text-transform property is used to specify uppercase, lowercase and capitalize (capitalization of the first letter of each word) letters in a text.



codebox | how to code | MAJOR EDITINGWhere stories live. Discover now