Is there a way to adjust the size of a carousel component and make it smaller using CSS? I tried setting the width in a class but it's not working. How can I achieve this?
grid.css
.wrapper {
display: grid;
/* grid-gap: 10px; */
grid-template-rows: minmax(300px, 500px) 1fr;
grid-template-columns: 1fr;
}
.carousel {
width: 50%;
}
app.jsx
import React from 'react'
import Tournament from './Tournament.jsx'
import Carousel from './Carousel.jsx'
import '../resources/styles/grid.css'
const App = () => (
<div className="wrapper">
<Carousel className = "carousel"
name='Copa de campeones'
description=' Solo para los campeones de cada liga en su carrera'
contact_name='Joaquin Cardenas'
contact_number='+56951097841'
date_tournament='2020-03-15'
sport='Baby futbol'
/>
<Tournament
name='Copa de campeones'
description=' Solo para los campeones de cada liga en su carrera'
contact_name='Joaquin Cardenas'
contact_number='+56951097841'
date_tournament='2020-03-15'
sport='Baby futbol'
/>
</div>
)
export default App
'''