Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Understanding Values and Units Fonts and Line Height Review

The font-size property lets us specify the font for an element.

which property let us specify the font for an element

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

The font-size property let's you define the size of the text. You have various other font properties to style text, such as:

  • font-weight - which defines the weight of the text, e.g. bold, regular, light and can take both keywords and values.
  • font-style - controls the appearance of the text, such as italic.
  • font-family - defines the type of font the text will use.
  • font - a shorthand property for setting all the font properties in one declaration.