X
X
xxxfdd2020-04-27 20:20:14
Bootstrap
xxxfdd, 2020-04-27 20:20:14

How can I change the color of this frame?

5ea7143985b5d708631959.png
not blue but red

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Pokrovsky, 2020-04-27
@xxxfdd

https://getbootstrap.com/docs/4.0/components/alerts/

S
Sergey Karbivnichy, 2020-04-27
@hottabxp

First, python has nothing to do with it.
Secondly, you did not show the code, how we will determine what you have accumulated and pasted there and from where.
Thirdly, well, let's say you are told how to change the color to red, the next question will be - 'How to change the color to green?'

I
Igor, 2020-04-27
@loonny

Why did you put in python and html tags? Browser styles are defined by the CSS file. The bootstrap site details what the preset colors are. If I understand correctly, this is an alert component, it has 8 colors available and the Alerts - Bootstrap section describes which classes to use for this. Specifically, red is the alert-danger class in bootstrap. If you need your own color, then you need to add your own class. Copy any of the classes, for example the same

alert-danger

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

change the colors to what you need, change the class name and apply it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question