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;
}
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:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With