Tutorial: How to Change Font in CSS – Part 2

Example syntax for the font style: font-style: italic H2 {font-family: times, times new roman, sans-serif font-style: italic} font type In this section you specify whether the letters be small or printed. When you select the small caps font will be displayed in a smaller size, but not as sensitive. However, if the font type designated as small caps, but the type is not available, the browser will, instead, you will automatically show the text as uppercase. H2 {font-family: Verdana, Arial, Helvetica, sans-serif font-variant: small-caps} The thickness of the letters in this section determine the weight or thickness, Conspicuousness font. Font can be normal or bold. You can choose between numbers 100 and 900 to create the desired thickness of the letters. p {font-weight: bold} The font size has to choose the font size.

You can choose different sizes for between letters will be displayed on the page. p {font-size: 10px;} p {font-size: 20pt;} p {font-size: 1em;} p {font-size: 200%;} The four examples given in the units have one key difference. Px and pt set absolute font size. % And em make it possible to adapt the font size according to your wishes. From culture to everyone, especially to people with low vision, such as the elderly, you should make your web site accessible by adjusting the font size using the unit % and em. Adjust the font size for any site it is possible for most browsers.

For example, in Mozilla Firefox (Mozilla Firefox), you can adjust the font size so that it becomes, or higher, or lower if you go to the view. For Internet Explorer (Internet Explorer) you can customize if you go to the view and select an option: the largest, larger, medium, small, at least.

Rule Drafting fonts for you to use multiple policies in a single rule. p {font-style: italic; font-weight: bold font-size: 30 px font-family: arial, sans serif;} Using the rule for the font, you can easily install all in one line. p {font: bold italic 30px arial, sans-serif;} This policy defines the following order: font style, font type, the thickness of the font, font size, font family.

Leave a Reply

Your email address will not be published. Required fields are marked *