I searched for similar inquiries without success. Here is a snippet from my aspx file:
<div align="center" style="height: 350px; overflow-y: scroll; overflow-x: scroll; width: 100%;">
<asp:Table ID="tblReport" Font-Size="11px" runat="server" ViewStateMode="Enabled">
<asp:TableHeaderRow Height="30px" ForeColor="#FFFFFF" BackColor="#3b3b3b" Style="font-weight: bold; text-align: left !important; padding-left: 3px; color: #FFF; border-right: 1px solid #ddeaf7;" HorizontalAlign="Center">
</asp:TableHeaderRow>
</asp:Table>
</div>
Despite not setting a max-width property, too many columns cause the width to fix at 100%, resulting in text wrapping within cells. I aim for horizontal overflow outside the div instead.
Edit: Adding this line resolved the issue:
td {
white-space: nowrap;
}