Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML table cells aren't uniform width in Firefox, fine in Chrome and IE8
    primarykey
    data
    text
    <p>I'm working on an app in ASP.NET MVC 2, and the output of the table looks the way I'd expect in Chrome and IE8: </p> <p><img src="https://i.stack.imgur.com/vDQTA.jpg" alt="alt text"></p> <p>but this is how it looks in FF 3.6.8 it looks like this:</p> <p><img src="https://i.stack.imgur.com/h9Ocy.jpg" alt="alt text"></p> <p>I'm using Javascript/jQuery to add rows, this is the code:</p> <pre><code> function onAddItem() { itemCount = itemCount + 1; var rowString = "&lt;tr id=" + itemCount + "&gt;"; rowString = rowString + "&lt;td&gt;" + document.getElementById("Order_productcode").value + "&lt;/td&gt;"; rowString = rowString + "&lt;td&gt;" + document.getElementById("Order_productsku").value + "&lt;/td&gt;"; rowString = rowString + "&lt;td&gt;" + document.getElementById("Order_productdesc").value + "&lt;/td&gt;"; rowString = rowString + "&lt;td align=\"right\"&gt;" + document.getElementById("ItemQuantity").value + "&lt;/td&gt;"; rowString = rowString + "&lt;td&gt;" + document.getElementById("Order_productweight").value + "&lt;/td&gt;"; rowString = rowString + "&lt;td&gt;" + document.getElementById("Order_productcost").value + "&lt;/td&gt;"; rowString = rowString + "&lt;/tr&gt;"; $row = $(rowString); $row.hide().fadeIn("slow").appendTo("#orderedItems table tbody"); } </code></pre> <p>Looking in Firebug, I found the row that gets created looks like this: </p> <pre><code> &lt;tr style="display: block;" id="1"&gt;&lt;td&gt;EC5931A-Tote&lt;/td&gt;&lt;td&gt;100002&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td align="right"&gt;&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;td&gt;33250.00&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; </code></pre> <p>that is, it adds <code>style="display: block;"</code>, which seems to be the problem (when I edited it out in Firebug, it looked correct, i.e., like in IE and Chrome). Why is Firefox doing that, and how can I make it stop?</p> <p>EDIT: I removed the <code>.hide().fadeIn("slow")</code> and now it's working correctly in Firefox. Seems to be a bug in jQuery with Firefox, although I didn't see it on the jQuery site. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload