Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I am trying to use a simple CSS class name to fixed any columns and not using the nth-child selector. Is it possible ? Commented Sep 2, 2014 at 18:50
  • yes, and it's even better, just give a class to the TD element (and also the TH as we're at it) and get rid of the nth-child. Commented Sep 2, 2014 at 18:53
  • I tried it all but it's not working :-( ... can you please try in that fiddle? Commented Sep 2, 2014 at 18:58
  • Hi Fabio, its looks working but I have two issues. First, if I have long string, it overlaps the other column data and second is the fixed column does not hide the scrolling column data. Can you please check this updated fiddle? jsfiddle.net/jeewanaryal/zxde4a4f/1 Commented Sep 2, 2014 at 20:51
  • well, of course you'll need to adjust it, I'm telling you an option based on your code, personally I wouldn't even use a table and I don't know why you need the fixed column behavior, so I did it based on your description and your existing code. For the "hide", simply add this: background:#ccc; z-index:100; Commented Sep 2, 2014 at 21:05