0

I'm looking for a relatively simple solution to allow table column resizing. There's a similar question:

Resizable table columns with jQuery

I really like the simple solution; jsfiddle.net/ydTCZ/

But it doesn't work on my table (it seems to be because the table is wider than the screen). If i simplify my table to just a couple of columns it works fine.

Community
  • 1
  • 1
Lee Tickett
  • 5,847
  • 8
  • 31
  • 55

1 Answers1

2

Cracked it.

The contents of my column headers <th>s are links (<a>s).

Instead of doing anything with the <th> I had to set the style of the <a>s to display: block

Then just $('th a').resizable({handles:'e'});

I should note I have both jQuery and jQuery UI loaded. JSFiddle example; http://jsfiddle.net/u32a1ccL/

Lee Tickett
  • 5,847
  • 8
  • 31
  • 55