Issue
I would like to know whether is there a way in css to apply a rule to all containers including a certain string.
For example:
I have: class="hello-english", class="goodbye-english" and class="tomorrow-english"
Is there a way to select all classes containing the string "english" in the class name?
Thanks
Solution
Check out attribute selectors.
That's basically, (or at least one answer to it)
element[class$="-english"] {
...insert rules here
}
Answered By - Franrey Saycon
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.