css selections

R

rodchar

hey all,
i have a 4x4 table where each cell has a cssClass assigned. there's a range
of cells in a column that i'd like to align center. i know i can get each
cell and do align center on it but i was wondering if there was other ways to
get to that range of cells and set its attributes?

thanks,
rodchar
 
A

Anthony Jones

rodchar said:
hey all,
i have a 4x4 table where each cell has a cssClass assigned. there's a range
of cells in a column that i'd like to align center. i know i can get each
cell and do align center on it but i was wondering if there was other ways to
get to that range of cells and set its attributes?

In order for a CSS selector to pick out any set of elements there must be
something about them that indicates they belong to the selection.

If you want to apply a style to only a subset of cells that is neither a
whole row or column you will need to apply an additional class name (note
the class attribute in HTML can contain multiple names) to the cells that
require additional formatting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top