PDA

View Full Version : overriding a style


spazzer
10-13-2009, 01:53 PM
Hi,
I have inserted a table into my site and used the styles from another table in an external style sheet to style it, however I would like to style the first column of td tags differently from the rest, I have tried creating a style and applying it but it is being overridden, how can I get this to work please?

Many Thanks,
Nick C8)

domedia
10-13-2009, 03:35 PM
My guess is that the first row is different because they're table headers. If so they need to be marked up as TH and not TD. That way you can have a separate style for TH's .

spazzer
10-13-2009, 03:56 PM
hi,
I have th tags over the top of the table, I want to highlight the td tags down the left side with a different background and text, I think that because the table td tags have already a style from another table they are overridden by the style, the background changes when I apply the style but not the text colour, must be a hierarchy thing I think,any ideas ?
Cheers

domedia
10-13-2009, 04:04 PM
Without seeing the code, no.