table.rightlist td
{
text-align:right;
}
table.rightlist th
{
text-align:right;
}
This code snippet is intended to align both the table cells (td) and headers (th) to the right within a table with the "rightlist" class. However, upon testing the consolidated selector:
table.rightlist td,th
{
text-align:right;
}
I noticed that the alignment only applies to the table data (td), but not the table headers (th). The issue seems to be that the combined selector is not correctly targeting both elements as expected.