Using display: table-header-group (Limited Support):This method utilizes the display: table-header-group property on the <th> elements within the <thead> tag
This approach changes the display type of your elements from block-level (occupying entire lines) to inline-block. This allows them to sit side-by-side like text