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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -