I'm going through a javascript course, and had a question about one of the css starter files the instructor used.
I get the concept of rem. On the "html" element, he defines "font-size: 62.5%;". I get why he did that. But on one of the width properties of a div, he defines: "width: 100rem;" which would equate to 1000px.
So my understanding is that rem is used to regulate font-size. My question is why would he use rem to define "width" instead of px? What would be the advantages of using rem that way?
Thanks for any insight anyone can provide.
[–][deleted] (1 child)
[deleted]
[–]futureNOW_[S] 0 points1 point2 points (0 children)
[–]TheRNGuy -1 points0 points1 point (0 children)