

The font-family property is used to specify the font to be used to render the text. Let's discuss each of these font properties one by one in more detail. The font properties are: font-family, font-style, font-weight, font-size, and font-variant. Styling Fonts with CSSĬhoosing the right font and style is very crucial for the readability of text on a page.ĬSS provide several properties for styling the font of the text, including changing their face, controlling their size and boldness, managing variant, and so on.
#Text styles css how to#
Here we have discuss an introduction and list of CSS text formatting properties in detail with the sample code examples and proper output.In this tutorial you will learn how to style fonts on a web page using CSS. This has been a guide to CSS Text Formatting. Make use of these text properties very easily and effectively on the web pages. These properties are very important aspects of CSS to display the text on the web page so that users or readers can get attract by seeing your text on the website. You could see the text is presented with different types of text formatting properties. So far, we have studied about text formatting ways in CSS. For instance, Helvetica, Calibri, Arial, Sans-serif, Times, Courier New, etc.Įxample: Illustration of the font-family property This property is used to provide various types of font-family names for the selected text. The default size of the text is 1em, which is equal to 12pt. This em property can be used to define the size of the text according to the surrounding text.

It uses components such as left position, the top position, size of the blur, color name.ĮDUCBA (Corporate Bridge Consultancy Pvt Ltd) is a skill based education It can be defined by using the text-shadow property. This property can be used to give shadow for the text. This property can be used to change the direction of the text. It can be defined by using line-height property.ĮDUCBA (Corporate Bridge Consultancy Pvt Ltd) is a leading global provider of skill based educationĪt eduCBA, it is a matter of pride to us to make job oriented hands on courses available to anyone, anytime and anywhere. This property can be used to give space between the lines. It can be defined by using the letter-spacing property. This property can be used to give space between characters. It can be defined by using the word-spacing property.

This property can be used to give space between words. It can be defined by using px, cm, pt properties.Įxample: Illustration of text indentation This property can be used to indent the first line of the text. It can be defined by using capitalize, uppercase, lowercase properties.Įxample: Illustration of text transformation This property can be used to change cases of the text. It can be defined by using underline, overline, line-through properties. This property can be used to decorate the text. It can be defined by using left, right, center, justify properties. This property can be used to change the horizontal of the text. It can be defined by using color property. This property can be used to change the color of the text.
#Text styles css software#
Web development, programming languages, Software testing & others List of CSS text formatting propertiesīelow is the list of CSS text formatting properties.ĭetails of Text formatting ways in CSS:- 1) Text Color
#Text styles css free#
Start Your Free Software Development Course
