Loading Please Wait...

Logo Lynxsia IT Solutions
CSS Fonts

In a web page there is lots of sections having headings, subheadings, paragraphs, etc. Selecting the right font is one of the main aspect of designing the web page.

The right font make a good impact on website visitors and create strong brand identity.

Always use a font which is easy to read, the size, weight, and color also have an important role.

  • Font Family
  • Font Fallback
  • Font Style
  • Font Weight
  • Font Variant
  • Font Size
  • Installing Font
  • Font Shorthand
CSS Font Family

The CSS font-family properties is used to set font of the text.

					 
        
          /* Single word font */
          font-family: Helvetica;

          /* Multi word font */
          font-family: "Times New Roman";

          /* With fallback */
          font-family: Helvetica, sans-serif;
        
      
Always use double quotes if the name of the font is more than one.
CSS Font Style

The CSS font-style properties is used to set font style that is normal, oblique, italic.

					 
        
          font-style: italic;
          font-style: oblique;
        
      
CSS Font Weight

The CSS font-weight properties is used to set font weight.

					 
        
          font-weight: bold;
          font-weight: 700;
        
      
CSS Font Variant

The CSS font-variant properties is used to set if text is displayed in small caps or not.

					 
        
          font-variant: small-caps;
          font-variant: normal;
        
      
CSS Font Size

The CSS font-size properties is used to set size of the font.

					 
        
          font-size: 18px;
          font-size: 1rem;
        
      
CSS Google Font

We can also include google fonts in our web pages.

					 
        
          <head>
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia">
            <style>
              body {
                font-family: "Sofia", sans-serif;
              }
            </style>
          </head>
        
      
CSS Font Shorthand

The CSS font is a shorthand property used to set size, weight, variant, family in a single line.

					 
        
          font: 20px Arial, sans-serif;
          font: italic small-caps bold 12px/30px Georgia, serif;
        
      

How you feel about this blog:

Share this blog on:

Report Us

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 Us
Ads
Logo
Lynxsia IT Solutions

We 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..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved