html - Select element with certain style? -
is possible select element style using css? like... img has style="position:fixed;"
what mean - selecting elements depending on style instead of class or id.
i'd use one:
[style~="position:fixed;"]{ /* whatever */ } see explanation here
so it'll catch elements have position:fixed; in style (because may have other styles attributes well)
but if position attribute not written in html, selector not select them. have use jquery that. read here
Comments
Post a Comment