Reputation: 11205
I have a table with 9 columns in an asp.net(vb) master page. The cells are supposed to hold textboxes. But even without textboxes, they are going beyond the content margins. So what can be done to make them fit the master page margins and if still it does not fits, the content area should become scrollable(not the whole page!).
Upvotes: 0
Views: 1303
Reputation: 11205
Using asp.net Panel control worked for me. It automatically added the scroll pane on the edges and bottom of the table.
Upvotes: 0
Reputation: 102763
Use CSS attributes width and overflow on the table... assuming it's an ASP.Net control table, and not plain HTML, then it would look like this:
<style type='text/css'>
table.mytable {
width: 100%;
overflow-x: scroll;
}
</style>
<asp:Table CssClass="mytable">
<%-- table stuff --%>
</asp:Table>
If it's a regular HTML table:
<table style="width: 100%; overflow-x: scroll">
<!-- table stuff -->
</table>
Upvotes: 1