all font style css code example

Example 1: sans serif font family css

<style>
.sansserif {
font-family: Arial, Helvetica, sans-serif;
}
</style>

Example 2: css font family

p{
    font-family:garamond,serif;
}

Example 3: css font style

.example {
  font-style: italic;
}

Example 4: font style css

/* There are MANY ways to style your fonts.  */

p {
  font-family: [font];
  color: [color];
  font-size: [size in pixels];
  font-weight: [weight];
  text-align: [alignment];
}

/* There are many more, but these are some popular examples.*/

Tags:

Css Example