Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi ,
I have CSS of template i get and when i installed bootstrap on that tempalte the css of both are conflicting with each other.
Is there any tool that will remove the conflicting styles of both CSS stylesheets
Posted
Comments
Sergey Alexandrovich Kryukov 17-Mar-14 15:52pm    
How can they possibly conflict?
—SA
shanalikhan 17-Mar-14 17:01pm    
my my template there is styles of input , also bootstrap provides their own styles of input
so when the document is rendered my styles are overwritten by bootsrap all of them.
is there any way to remove those styles from any tool rather then checking one by one.
Nick Ginis 18-Mar-14 1:28am    
Get your CSS to load after the bootstrap CSS.

1 solution

There are number of ways where you can follow to avoid this.

1. You can use your project name as a namespace for your css class/id names.

e.g. .yourprojectname-class-name

2. You can use !important to override the exiting css classes

Check here for more : !important

Please read this for more methods : conflict between bootstraps css and own css
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900