On Wed, Aug 11, 2010 at 04:16:56PM -0700, Alex Mitchell wrote:
> On Wed, Aug 11, 2010 at 1:34 PM, Rick Pasotto <[email protected]> wrote:
> 
> > How can I style only some cells in a col? The cells I want to style have
> > a class that I can use. I can style the col but that applies the style
> > to all the cells in the col.
> >
> > It may be a matter of using the right selectors, but no combination I've
> > tried has worked.
> >
> > --
> > "The liberty the citizen enjoys is to be measured not by the governmental
> >  machinery he lives under, whether representative or other, but by the
> >  paucity of restraints it imposes on him." -- Herbert Spencer, 1884
> >     Rick Pasotto    [email protected]    http://www.niof.net
> 
> 
> td.classname{
> (style here)
> }
> 
> This should work, maybe be more specific like
> 
> table tr td.classname{
> (style here)
> }

I *know* how to do that.

Every cell in the row has the same classname but I only want a different
style for the first and last cells (It's a calendar). The way the
template is written I have no way of applying a style to only some of
the cells in the row.

> I don't think you can use col as a selector, because no elements are
> technically wrapped in it.

As I said, I can style the *entire* col but I don't want the first two
rows (whose cells do *not* have the stylename) to be styled. The whole
point of 'col' is to be able to deal with a particular column. There
ought to be a way to deal with *part* of the column.

-- 
"Beware of all enterprises that require new clothes, and not rather a
 new wearer of clothes." -- Henry David Thoreau
    Rick Pasotto    [email protected]    http://www.niof.net
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to