Problem with css attribute selector for lang
Posted: Tue Sep 22, 2020 4:43 pm
Hi,
When I use an CSS attribute selector like
The localized text only shows up if I enter lang="de-". If I just enter lang="de" the english text is still displayed.
Is this the correct implementation of the selector?
Stefan
When I use an CSS attribute selector like
Code: Select all
*[langcode|="de"] filter:before {
content: "Filterkriterium: ";
}
Is this the correct implementation of the selector?
Best regardsExplanation from https://developer.mozilla.org/en-US/doc ... _selectors
[attr|=value]
Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D). It is often used for language subcode matches.
Stefan