Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2012, 09:51
Avatar de ryugen
ryugen
Colaborador
 
Fecha de Ingreso: agosto-2008
Ubicación: Rosario, Santa Fe
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 187
Respuesta: aplicar css a padre desde hijo

Con CSS actualmente no se puede hacer.

En el borrador de CSS4 esta planteado el selector "padre"

http://dev.w3.org/csswg/selectors4/#subject

Cita:
E! > F an E element parent of an F element Determining the subject of a selector + Child combinator 4
[...]
EXAMPLE I
For example, the following selector represents a list item LI unique child of an ordered list OL:

OL > LI:only-child

However the following one represents an ordered list OL having a unique child, that child being a LI:

OL! > LI:only-child

The tree structures represented by these two selectors are the same, but the subjects of the selectors are not.
Hoy en día debería utilizar javascript para agregar una clase o el estilo ad-hoc. O en el lenguaje del lado del server que estes usando para generar esto, deberías tratar de detectar a cuales tablas se aplicaría la condicion y marcarlas con una clase en particular