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-.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[class*="col-"] {
position: relative;
}
[class*="col-"] { position: relative; }
[class*="col-"] {
   position: relative;
}

Leave a Reply