Make long table scrollable in a udcard

i’m putting a table inside a card but the card just resizes to the table size and I have to scroll the whole page. How can I make the table scrollable inside the fixed size card instead of having to scroll the page?
i’m talking about height not width table with many rows