You do not necessarily need different id's, you can do using same classes, see:
.jumbotron.success {
background-color: #4CAF50;
}
.jumbotron.warning {
background-color: #FF9800;
}
.jumbotron.danger {
background-color: #F44336;
}
.jumbotron#beach {
background-color: transparent;
background: url(beach.jpg) no-repeat;
color: #fff;
}
The .jumbotron.nome-da-classe
selector specifies an element that has both classes, you can do the same with id
: .jumbotron#id
, use looks like this:
<!-- Exemplo com classe -->
<div class="jumbotron danger">
<h1>Hello, world!</h1>
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
<!-- Exemplo com ID -->
<div class="jumbotron" id="beach">
<h1>Hello, world!</h1>
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>