Skip to content

Instantly share code, notes, and snippets.

@blastseld
Created December 8, 2013 22:19
Show Gist options
  • Save blastseld/7864632 to your computer and use it in GitHub Desktop.
Save blastseld/7864632 to your computer and use it in GitHub Desktop.
javascript get computed css style for all children
$(function(){
$('#responsive_links_top').find('*').each(function(){
console.log($(this))
console.log('computed: ',$(this).height())
console.log('height: ',$(this).css('height'))
console.log('min-height: ',$(this).css('min-height'))
console.log('max-height: ',$(this).css('max-height'))
console.log('line-height: ',$(this).css('line-height'))
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment