All videosLayout & design
CSS width and height

CSS width and height

In responsive web design, width and height properties are sized based on the content inside, but can be more specifically defined using pixels (px), percentages (%), ems, rems, viewport width (vw), viewport height (vh), viewport minimum and maximum (vmin and vmax), fractional units (fr), and character units (ch).

In this lesson, we’ll cover each of these units, as well as minimum and maximum values, overflow, and object-fit.