Apparently, something like this will work:

.cellTableFirstColumn.cellTableKeyboardSelectedRowCell {
  ...
}

Note that there's no space between the selectors. I haven't tested it
at all, let alone with CellTable, but The Internet says this works...
except in IE6, of course.

Another suggestion I saw was to do some post processing, searching for
elements with these two styles and adding a third style. In this case,
maybe you could latch on to the events that change keyboard focus for
the cells and manage the extra style there.

-Brian

On Thu, Feb 24, 2011 at 11:57 AM, John LaBanca <[email protected]> wrote:
> I think the problem is that cellTableFirstColumn
> and cellTableKeyboardSelectedRowCell are both applied to the TD element, so
> a descendent selector won't work because cellTableKeyboardSelectedRowCell is
> not on an element beneath an element styled with .cellTableFirstColumn.
> I haven't tried it, but the CSS3 pseudo selector "first-child" might work
> here (for browsers that support it):
> .cellTableKeyboardSelectedRowCell:first-child {
>   background-color: fuchsia !important;
> }
> Thanks,
> John LaBanca
> [email protected]
>
>
> On Thu, Feb 24, 2011 at 10:22 AM, Julian <[email protected]> wrote:
>>
>> Hi there
>>
>> I'm trying to combine the cellTableFirstColumn
>> and cellTableKeyboardSelectedRowCell selectors to set background-color of
>> the first cell in the selected row to a lovely pink.
>>
>> I have the following in my CellTablePatch.css
>>
>> .cellTableFirstColumn .cellTableKeyboardSelectedRowCell {
>>   background-color: fuchsia !important;
>> }
>>
>> But for some this style isn't applied. Firebug tells me both of the styles
>> are applied to the first cell in the selected row, but no pink shows up.
>>
>>
>> Combining two other selectors in the same way, e.g. cellTableEvenRow and
>> cellTableFirstColumn works just fine.
>>
>> Any clues to what I'm doing wrong here?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to