Too Long; Didn't Read
Both inline and block elements are important components of CSS. To learn about the box model in CSS, click here.
When we create a new div or other block element, it takes up the full width of the page - but what if we want a div or any other block DOM element to only be the width of its contents and no more? To make an HTML block an element like a div take up no more space than its content, we can use the fit-content keyword.