Combining CSS attribute selectors

Is there a way to combine CSS2 attribute selectors such as tr[id^="foo" AND id$="bar"], so it selects everything <tr id="foo_something_bar"> but not <tr id="foo_something"> or<tr id="something_bar">

+5
source share
1 answer

In the same way, you combine any selectors.

tr[id^="foo"][id$="bar"]

These two substring matching selectors, however, are introduced in the CSS 3 draft. This is not CSS 2.

+12
source

All Articles