![]() |
CSS for TDs in HTML Tables - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: CSS for TDs in HTML Tables (/showthread.php?tid=32259) |
CSS for TDs in HTML Tables - El Forum - 07-17-2010 [eluser]bafadam[/eluser] Is there a way to override the class options for <i>individual</i> table details? I don't want to do it on all of them, just certain ones. Almost like I was applying a style to a column, not all columns. Anyone have any thoughts or should I just break my table out of the html table helper? CSS for TDs in HTML Tables - El Forum - 07-18-2010 [eluser]boony[/eluser] Hi, Surely all you need to do is ensure any table classes that you construct are placed last in your css to take precedence? CSS for TDs in HTML Tables - El Forum - 07-18-2010 [eluser]bafadam[/eluser] I don't think I'm explaining myself well. Essentially, what I want to do is this: <table> <tr> <td></td> <td></td> <td class="something"></td> </tr> </table> I want to apply class styles to table details conditionally or at the least, not globally. Is there a way in the template array to set those classes on the column number or do I need to extend the table class to do so? Clearer? |