0

I'm trying to apply a css class to all <th class='euroth'></th> which are located in either table.tablesorter-All-Activity or table.tablesorter-Events.

This is what I did

table.tablesorter-All-Activity,.tablesorter-Events th.euroth {
    width: 7px;
    vertical-align:middle;
    text-align: left;
    z-index: 5;
    }

As a result, the first table is shifted all the way to the left and the second one accepts the style nicely.

Why is that?

Thanks

1
  • 1
    a comma indicates separate elements that the styles will be applied to. You need to enter th.euroth twice. Commented Jan 29, 2013 at 18:31

1 Answer 1

3

You have to append th.euroth to your first selector:

.tablesorter-All-Activity th.euroth,
.tablesorter-Events th.euroth {
    /* properties go here... */
}
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.