CSS | font-size-adjust Property

The font-size-adjust property in CSS is used to adjusts the font size based on the height of lowercase rather than capital letters and gives the better control of the font size. It is very useful when the text has given multiple styles and has adjust the font while changing in between those styles.

Syntax:

font-size-adjust: number|none|initial|inherit;

Property values:

  • number: It sets the number to the font-size-adjust property.
  • none: It sets the default value.
  • initial: It sets the font-size-adjust property to its default value.
  • inherit: The font-size-adjust property is inherited from its parent.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>
            CSS font-size-adjust property
        </title>
          
        <style>
            .GFG1 {
                font-family: Times, serif;
            }
              
            .GFG2 {
                font-family: Verdana, sans-serif;
            }
            div {
                font-size-adjust: 0.58;
            }
        </style>
    </head>
      
    <body>
        <h1>GeeksforGeeks</h1>
          
        <h2>
            CSS font-size-adjust property
        </h2
          
        <p class = "GFG1">
            GeeksforGeeks: A computer science
            portal for geeks
        </p>
        <p class = "GFG2">
            GeeksforGeeks: A computer science
            portal for geeks
        </p>
    </body>
</html>                    

chevron_right


Output:

Supported Browsers: The browser supported/not supported by font-size-adjust property are listed below:

  • Google Chrome: Not Supported
  • Internet Explorer: Not Supported
  • Firefox 3.0
  • Safari: Not Supported
  • Opera: Not Supported


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.