Utilizing bootstrap in my react js project, I am implementing css grid to showcase some cards. However, I am encountering responsiveness issues.
import React from "react";
import "./Project.css";
export const Project = () => {
return (
<div>
<div className="container tracked">
<div className="card">
<div className="face">
<div className="content">
<h2 className="titler">TITLE</h2>
<p>
BLABLA</p>
</div>
</div>
<div className="face">
<h4>Product Search</h4>
</div>
</div>
</div>
);
};
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>
.tracked{
width: 1200px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
grid-gap: 15px;
margin: 0 auto;
}
I aim to have three cards in a row while ensuring responsiveness. Currently, the display is not responsive, despite functioning well on desktop screens.