CSS Font Code Generator

CSS font-family allows a user to use a specific font or font family for an element's text. Properties like font-style, font-weight, and font-size are used to modify the appearance of a font.

Preview

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel congue tortor. Quisque venenatis sagittis ligula a finibus. Sed eu facilisis velit.

Properties

Code

.element {
  font-family: "Arial, sans-serif";
  font-size: 18px;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  letter-spacing: 0px;
  word-spacing: 0px;
  color: #222222;
}