How to CSS: select element based on inner HTML [duplicate] July 17, 2023 by Tarik This is not possible using CSS. You can, however, do it using jQuery. There’s a nice blog post on it you can read.