I know I can style elements like inputs using input[type=text] {}
, but can I do the same with elements with inline styling?
Something like this:
<div style="float: right;"></div>
div[style=float:right;] {}
I know I can style elements like inputs using input[type=text] {}
, but can I do the same with elements with inline styling?
Something like this:
<div style="float: right;"></div>
div[style=float:right;] {}
You can still use CSS attribute selectors; For instance sub-string *=
selector:
div[style*="float: right"],
div[style*="float:right"] { ... }