Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change alert info text color

Im using bootstrap 3 and I want to change the text color of the alert info and alert danger,I want that the texts become darker,how should I do that ?

I search in bootstrap and I've found the following but didnt find the text color...

    .alert-info {
      background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
      background-image:         linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
      background-repeat: repeat-x;
      border-color: #9acfea;

} 
like image 430
07_05_GuyT Avatar asked Jan 30 '26 06:01

07_05_GuyT


1 Answers

Looking at the Alerts section on Bootstrap's own website and through the unminfied CSS on their Github repository I can't find any of the CSS you've specified. Instead I can only find the following:

.alert-info {
    color: #31708F;
    background-color: #D9EDF7;
    border-color: #BCE8F1;
}

If you want to make the color darker, you can use a tool like http://paletton.com to generate some complimentary darker colours:

Example

like image 94
James Donnelly Avatar answered Jan 31 '26 19:01

James Donnelly