Percentages5:31 with Anwar Montasir
We can also define number values more fluidly with percentage units because percentages, by nature, are always relative to something else. When we use a percentage unit in CSS, the percentage value is measured relative to a parent element's length. The size of the child element adjusts based on the parent element. Many properties like width, margin, and padding use percentages. And they're commonly used for layout, since they allow fluid sizing of elements relative to their container.
You need to sign up for Treehouse in order to download course files.Sign up