CSS Font

 


CSS Font

  • Font properties are used to add different styles to the fonts.
  • Font properties are used to change the style, size, weight, etc. of the font.
  • Font styling adds a good impact on the readers, that's why we use different font styling properties.

Different font-properties

font-family:

font-family property is used to specify the font of a text.

.heading {
    font-family: 'sans-serif', 'Ubuntu';
}


font-size

font-size property is used to specify the size of the text.

.heading {
    font-size: 20px;
}


font-weight

font-weight property set, how bold or thin characters in the text should be displayed

.heading {
    font-weight: bold;
}

Related Posts:

  • Display Property The display property specifies if/how an element is displayed.Every HTML element has a default display value depending on what type of element i… Read More
  • Z-index The z-index property specifies the stack order of an element.When elements are positioned, they can overlap other elements.An element can have a… Read More
  • CSS LIST There are two main types of listsunordered lists (<ul>) - the list items are marked with bulletsordered lists (<ol>) - the list item… Read More
  • CSS Overflow Sometimes the content shown is too large to be visible in a single line or division of the website. So, to avoid loss of that information we can… Read More
  • position Property The position property specifies the type of positioning method used for an elementThere are five different position values:staticrelativefixedab… Read More

0 Comments:

Post a Comment

Do leave your comments