Turning off width: 100%
Turning off width: 100%
I've read a lot of forum postings that seem to have the opposite problem that I have: I do not want my table to take up 100% of the browser if it doesn't have to. Here's a simple table:
[code]
12
AB
[/code]
If I [code]$(document).ready(function() { $('#t1').dataTable( ...[/code] on it, it takes up the whole browser. I tried setting [code]bAutoWidth: false[/code] but this doesn't change the behavior. This has got to be a noob question, but it's almost like no one wants to do that? If I have a naturally 300px-wide table, I want it to be that wide.
[code]
12
AB
[/code]
If I [code]$(document).ready(function() { $('#t1').dataTable( ...[/code] on it, it takes up the whole browser. I tried setting [code]bAutoWidth: false[/code] but this doesn't change the behavior. This has got to be a noob question, but it's almost like no one wants to do that? If I have a naturally 300px-wide table, I want it to be that wide.
This discussion has been closed.
Replies
Allan