Blog

CSS Attribute Selector
Posted on September 3, 2020 in CSS by Matt Jennings

The [class*="col-"] code below is an attribute selector. This code says for any HTML element with the attribute of class, somewhere inside of that attribute contains col-.

[class*="col-"] {
   position: relative;
}

Leave a Reply

To Top ↑