detect the css of an element in if code example Example: jquey check css style $('#yourElement').css('position') == 'absolute'