tables with captions

Giganews Newsgroups
Subject: tables with captions
Posted by:  Andrew Poulos (ap_pr…
Date: Fri, 25 Oct 2019

I have a set size DIV in which a single table sits. The DIV is
display:grid and the table is centred within the DIV with a tiny margin
around it. This displays "correctly" until I add a caption to the table.

The caption adds to the overall height of the table causing the table to
protrude out the bottom of the DIV. How can I get the captioned table to
stay within the DIV?

Andrew Poulos