0
table.rightlist td
{
    text-align:right;
}

table.rightlist th
{
    text-align:right;
}

The above code works, but when I tried making

table.rightlist td,th
{
    text-align:right;
}

the th,td isn't working, it only aligns for td, but not for th

1 Answer 1

2

You need to fully specify each selector when comma separating them,

table.rightlist td,
table.rightlist th
{
    text-align:right;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.