#TIL : CSS Selector element has an attribute which contains some string


21 Aug 2023 / by KhanhIceTea

[abc*="something"] means select element has attribute abc, and its value contains "something" string

Example :

/* Warning all admin link is red text color */
a[href*="/admin/"] {
	color: red;
}

Sound good ?