firefox renders datatable off to the right

firefox renders datatable off to the right

fuvyfuvy Posts: 2Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
I have the same issue when using firfox as described here:
http://datatables.net/forums/discussion/3942/firefox-3.6.3-renders-datatable-far-off-to-the-right/p1
and here:
http://datatables.net/forums/discussion/1131/firefox-display-skewed-under-/p1

Screen capture:
https://picasaweb.google.com/lh/photo/sRdkpj0nmVtYWiKSMseWi2nhKmxnARCTUS9-Cr4eldg?feat=directlink

I'm using firfox 13.0.1 and DataTables 1.9.2.
Here is the captured (rendered) HTML:
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



Aliases | Clam





$(document).ready(function() {
$('#niceTable').dataTable({"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],});
} );












<!-- Here's all it takes to make this navigation bar. -->

Home
Customers
Graph
CSV
Aliases
Account
Logout

<!-- That's it! -->


Aliases
UnitAliasd000000000000001[NONE]Editd123456789012345TestUnitEditd351934045182925[NONE]Editd351934045842221RoomLoggerEditd351934045843898[NONE]Editd351934045845109[NONE]Editd351934045845711[NONE]Editd351934045863961[NONE]Editd351934045868010[NONE]Editd351934045870594[NONE]Editd351934045871550[NONE]Editd351934045871709[NONE]Editd351934045878050[NONE]Editd351934045886277[NONE]Edit





[/code]

Any ideas appreciated?

Replies

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin
    Add:

    [code]
    table { clear: both }
    [/code]

    to your CSS.

    Not 100% sure why it sometimes happens in Firefox and no other times...

    Allan
  • fuvyfuvy Posts: 2Questions: 0Answers: 0
    That's sorted it. Good spot. Many thanks allan.
This discussion has been closed.