is there a way to combine CSS2 Attribute Selectors like tr[id^="foo" AND id$="bar"]
, so it selects all <tr id="foo_something_bar">
but not <tr id="foo_something">
or <tr id="something_bar">
Asked
Active
Viewed 6,144 times
13

user354411
- 133
- 1
- 5
1 Answers
24
The same way you combine any selectors.
tr[id^="foo"][id$="bar"]
Those two substring matching selectors, however, are being introduced in the CSS 3 draft. They are not CSS 2.

Quentin
- 914,110
- 126
- 1,211
- 1,335
-
If you have a new question, you can [ask it here](https://stackoverflow.com/questions/ask). – Quentin Oct 07 '22 at 12:59