sebastian
sebastian

Reputation: 1554

Implement bootstrap on framework that already has styles

I'm using a php framework that generates inputs with classes for it's css. All the HTML elements are already defined with styles, but it's ugly and I want to use bootstrap.

Is there an easier way to implement bootstrap to the my website without renaming all the selectors in the bootstrap CSS?

Thanks, Sebastian

Upvotes: 0

Views: 67

Answers (1)

adamdehaven
adamdehaven

Reputation: 5920

Include Bootstrap BEFORE your custom default styling. Any CSS in your custom file will override the CSS in Bootstrap. Then, you can tweak as needed.

If you prefer the default Bootstrap styles, include the Bootstrap CSS AFTER your other CSS files, and then delegate priority as desired.

Upvotes: 1

Related Questions