I would like to display a horizontal card that has more columns in it. If it exceeds the col-12 size the rest of the content also needs to be displayed within the card with a scrollbar enabled.
My HTML Code:
<div class="container-fluid">
<div class="card">
<div class="card-body">
<div class="row flex-nowrap">
<div class="col-2">
Name
</div>
<div class="col-2">
Id
</div>
<div class="col-2">
Dept
</div>
<div class="col-2">
Section
</div>
<div class="col-2">
Class
</div>
<div class="col-2">
Roll No
</div>
<div class="col-2">
Subjects
</div>
<div class="col-2">
Mark
</div>
<div class="col-2">
Total
</div>
<div class="col-2">
Grade
</div>
</div>
</div>
</div>
</div>
In my code, all the contents are getting displayed horizontally but content > col-12 not displaying inside the card. I want to achieve that all the content needs to be displayed inside the card and if it exceeds the screen size the remaining content inside the card needs to be displayed along with a scroll bar horizontally.