DISCOVERY! Don't use 'align="center" in your TABLE tag!

DISCOVERY! Don't use 'align="center" in your TABLE tag!

lwoodslwoods Posts: 11Questions: 0Answers: 0
edited February 2011 in General
I just spent 4 hours trying to figure out why my DT wouldn't work correctly. I was trying to implement y-scrolling. The table was appearing at the bottom of my page although the header was at the top. This only happened if I had bPagination set to 'false'. Setting bPagination to 'true' would move the table to the top of the page!

A simple thing like having 'align="center"' in my TABLE tag! I removed it and all is well.

It may be in the doc somewhere but I didn't see it.

Anyway, FYI.

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Hi lwoods,

    Thanks very much for the heads up on this! I had no idea that it would be quite so catastrophic and mess up the scrolling totally. I'll certainly keep this little nugget of information readily available :-)

    Regards,
    Allan
  • AmoKkAmoKk Posts: 2Questions: 0Answers: 0
    You do not need to put it in the tag.

    Use :
    [code]
    //Insert code here
    [/code]
This discussion has been closed.