-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overriding bootstrap styles #1611
Comments
Can you provide the snippets of your index.js (especially the import section)? |
My index.js is simply:
|
try to move the css imports above
And see if it works |
Yes that does work, thanks very much! I wonder if that might be worth adding to the "Add Bootstrap" section of the docs, as it's not made clear there. |
PR? |
@joewoodhouse if you could add a note about this to the Adding Bootstrap section, that would be great! |
This is what worked for me:
|
For some reason this is not working for me. The index.js file does look different at this point. There's no import of Routes.
|
Hi guys,
This is probably a very stupid question, but ...
I've imported bootstrap into my create-react-app project as per the documentation (very nice).
However when I look at the generated markup, all the <style> tags for my components e.g.
Header.css
come before the bootstrap css, which means I can't (easily) override bootstraps default styling.Is there a way to ensure bootstrap gets put before other css files?
The text was updated successfully, but these errors were encountered: