Sharpless512 Sharpless512 - 4 months ago 13x
CSS Question

White background class in Bootstrap

I'm searching for a class that makes the element a white background.

maybe something like .bg-white, I couldn't find it in Bootstrap but maybe its hidden somewhere?


Bootstrap doesn't have a white background class.

Create your own:

    background:#ffffff !important;

This can be placed in bootstrap.css or your own custom stylesheet if you've created one.

The only backgrounds there are in bootstrap are:


Source: Bootstrap website