Table doesn't fit the wrapper

Table doesn't fit the wrapper

ILyaCycloneILyaCyclone Posts: 9Questions: 2Answers: 0
edited April 2010 in General
Hi,

I have just installed the DataTable plugin and trying to use it.
First issue I encounter is:

The table doesn't fit the wrapper div.
It is larger then the wrapper div when there are 10 records - which cause next div overflow.
Picture 1: http://yfrog.com/jkwrapper01p

And it is smaller then the div when there is, say, 1 record - which cause empty space on the page.
Picture 2: http://yfrog.com/hqwrapper02p

Please, advice me the solution.
Thanks.

Replies

  • ILyaCycloneILyaCyclone Posts: 9Questions: 2Answers: 0
    Please, reply...
  • CassiannoCassianno Posts: 19Questions: 0Answers: 0
    Easy fix Lya:

    Before closing tag for wrapper div (or after DT ), put a
    [code][/code]
    For the empty space, remove the height attr of wrapper div, so it'll be always the height of DT.
  • ILyaCycloneILyaCyclone Posts: 9Questions: 2Answers: 0
    Found the reason.
    There was min-height css attribute set in .css file from example.

    Nevertheless the table is still a little bigger then the wrapper in Opera browser.

    Is there a standard or adviced (ready to use) CSS file for DataTable?
This discussion has been closed.