MChan
MChan

Reputation: 7202

Bootstrap alert not showing

I am trying to display this alert on my html page but the background color of the alert is not appearing. I've included the following bootstrap files (bootstrap.min.css, bootstrap.min.js) and (jquery-2.0.3.js). Any idea what I am missing here? Thanks

 <div class="alert">
            <button class="close" data-dismiss="alert">&times;</button>
            <strong>Accounts Expiring Soon</strong>
        </div>

I am using Bootstrap 3

Upvotes: 1

Views: 5281

Answers (1)

mboldt
mboldt

Reputation: 1835

The .alert-class itself does not contain a definition for the background color. You need to add another class to determine which kind of alert you want to use, e.g.

<div class="alert alert-danger">...</div>

Check the Bootstrap page for more info on the alerts.

Upvotes: 2

Related Questions