I am struggling to keep the second title card inline with the first one, regardless of the display size. My current CSS setup includes using a scrollbar for overflow management.
This is the CSS I am currently utilizing (.mainCard set to display: inline):
.trending {
overflow-x: auto;
}
.mainCard {
background-color: aqua;
border-radius: 10px;
float: left;
}
Although I have attempted using white-space: nowrap;
, this caused an issue where the text overflows instead of the cards themselves.
Screenshot showing result of using white-space: nowrap
.trending {
white-space: nowrap;
width: 100%;
overflow: auto;
}
.mainCard {
background-color: aqua;
border-radius: 10px;
float: left;
}
I am currently working with react-bootstrap and any assistance would be greatly appreciated. Thank you!