Check a div has a particular style using Javascript/ JQuery -


i injecting html code every webpage before <body> tag using chrome extension content_script.js file before() method. adding margin-top:60px; body tag. displaying in header section websites problem other websites header stick. using position:fixed; css stick header.i need know if can identify div contains style css position:fixed; using javascript or jquery.

for getting value assigned particular css entry of element , compare it:

if ($('#yourelement').css('position') == 'fixed') {    // true } 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -