Is there a way to exclude the container class from affecting the jumbotron class in Bootstrap 4?
In my PHP project using the MVC pattern, I have a header included on every page that ends with <main class="container">
. However, on the home page, I want a jumbotron to display fully horizontally without being constrained by the container's width. The issue arises because the template for the home page generates after the main tag.
I attempted using the :not()
selector, but it didn't produce the desired outcome.
.container:not(.jumbotron) {
}
Any suggestions or advice would be greatly appreciated. Thank you in advance!