After experimenting with React to create a simple project, I decided to integrate Bootstrap into my app to explore the combined potential of both CSS stylesheets. While most of my styling works seamlessly alongside Bootstrap, I encountered an issue where one background color was getting overridden. Determined to find a solution, I strategically arranged my CSS links in the <head>
section of index.html
, placing them after the Bootstrap link like so:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="/src/App.css" />
<link rel="stylesheet" href="/src/components/Reservations/Reservations.css" />
<link rel="stylesheet" href="/src/components/ReservationForm/ReservationForm.css" />
<link rel="stylesheet" href="/src/components/Card/Card.css" />
<title>React App</title>
Despite my efforts, the background color still refuses to display as intended on the screen. My CSS files are organized next to their corresponding .jsx
files within the project structure. Should I consider consolidating all CSS files into one directory? Any insights or suggestions would be greatly appreciated! Thank you!