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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -