I am currently looking for a software/web development job preferably as a Rails-based developer.
Please email me at weston@westonganger.com. Thanks in advance for any leads!

Using Wildcard Selectors In CSS

Posted by Weston Ganger

I wanted to apply a rule to all classes beginning with a certain string.


/* any element with class that starts with 'col-' ex. 'col-sm-12' */
*[class^='col-']{ 
}

/* any element with a class that contains 'col-' ex. 'abc-col-123' */
*[class*='col-']{ 
}


Related External Links:

Article Topic:Software Development - HTML / CSS

Date:June 01, 2015

Recommended Posts