Containers and Rows in Bootstrap 5.3
摘要
As a quick reminder of what we discussed in Chapter 1, recall that a website is essentially a collection of HTML elements. These elements are added to the page similar to how you read a regular piece of English text, but with an important distinction: HTML elements follow different display behaviors. Some elements, like or , are inline elements that flow within the text and only occupy as much width as necessary for their content. Others, like
, , are block elements that create distinct "blocks" on the page, automatically starting on a new line and stretching to fill the full width of their parent container – the parent container being either the element itself, or any nested element like a wrapping
, or