PDA

View Full Version : CSS: mixing names, classes and Tags


piz
08-01-2003, 12:43 PM
Hi,

I have a table named "date". (Attribut name="data"). I want to define styles for certain td-elements only in this table and i know I can do ist this way:

#data .td_class{ /* styles*/ }

There is no problem.
Now I want to define styles for images in this td-cells, in the same way, but it doesn't work.

I have tried it this way:

.td_class img {...}

and it works, but I want to define the style only in the data-Table.
This way it doesn't work:

#data .td_class img{...}

How I can do this?

Thx.
Saludo
piz

BrainJar
08-01-2003, 03:27 PM
Try:

#data td.td_class_name img { ... }