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 Understanding Values and Units Percentages

Ilija Marinkovic
Ilija Marinkovic
6,456 Points

What did he exactly do when he typed html { font-size: 20px;} exactly?

Self explanatory.

1 Answer

Steven Parker
Steven Parker
231,271 Points

The "html" element is the base element for the whole document, and is 16px by default. So by changing it to 20px, any base element text would become larger. But more relevant to this lesson is that in any child element that has a relative text size (expressed as a percent), that text would also become larger.

This is demonstrated starting around time index 4:53 in the video. He then also demonstrates that text items with fixed (pixel) sizes do not change.