Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

css selector starts with

The following should do the trick:

div[class^='myclass'], div[class*=' myclass']{
    color: #F00;
}
Edit: Added wildcard (*) as suggested by David
 
PREVIOUS NEXT
Tagged: #css #selector #starts
ADD COMMENT
Topic
Name
4+8 =