Welcome Guest, Not a member yet? Register   Sign In
CSS for TDs in HTML Tables
#1

[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?
#2

[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?
#3

[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?




Theme © iAndrew 2016 - Forum software by © MyBB