As I delve into Bootstrap, the usage of the .container
class is provoking some confusion.
Most tutorials suggest a structure like this:
-.container
--.row
---.col-
---.col-
However, I came across a different approach in a W3schools example:
W3Schools - Bootstrap,
where multiple .container elements are used and not everything is wrapped inside a .container
(e.g. the carousel).
So my queries are:
- When should one use multiple .container elements?
- Is there a rule for determining which types of elements shouldn't be contained within a
.container
?