Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery tablesorter plugin column width incorrect in IE7

I am using the tablesorter plugin (http://tablesorter.com) and am having a problem with column widths in IE7. It looks fine in Firefox and sometimes in IE7.

Here's a screenshot of the problem:

IE7 View

and here's how it's supposed to look:

Firefox view

like image 797
John Boker Avatar asked Sep 03 '08 13:09

John Boker


1 Answers

This is a common layout problem in IE. If you are using CSS to style the columns width, also add the column widths to the td tags. Set the first column to a percentage that will try to suck up most of the space, like 50% or something. The first column width will take everything that it can and the other columns will abide by their static width.

like image 95
Nick Berardi Avatar answered Oct 09 '22 15:10

Nick Berardi