i would like to apply this class to all childs elements
<div >
<div >
</div>
<div >
</div>
<div >
</div>
when i applied bg-dark those divs are not dark colors, how can i apply to all of them?
CodePudding user response:
What is the purpose of the first div in this example? It doesn't seem to have any characteristics other than a dark background. If that's the case, you don't need it and your code should look like this.
<div >
</div>
<div >
</div>
<div >
</div>
Alternatively, you can use the outermost div as a container with height, width, border etc like so:
<div >
<div >
</div>
<div >
</div>
<div >
</div>
</div>