A
A
Artem Prokhorov2021-08-04 11:21:24
Bootstrap
Artem Prokhorov, 2021-08-04 11:21:24

How to override styles for components on bootstrap 5 without !import in css?

It seems like it's bad practice to use for example , but it doesn't react differently. How to fix? width: 30%!import

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-08-04
@delphinpro

First, see if it is possible to change the corresponding variable in the bootstrap config. If possible, change and rebuild.
If not, then find out what selector specificity is .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question