freeCodeCamp's Adjust the Height of an Element Using the Height Property

Lesson Summary

In this lesson from freeCodeCamp's Applied Visual Design section we look at the height property. Similar to the width property, we are able to set an elements height using different units. We are able to use an absolute unit ("px"), a relative unit ("em" or "rem") or a percentage works as well (%). Using the height property on an element will give that element a different height and may cause other parts of your document to move so practicing width and height is very important in creating an appealing visual design that is responsive.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required