get computed style of any element


/ Published in: JavaScript
Save to your folder(s)

enter this into the browser console to check the computed style of any element you specify


Copy this code and paste it in your HTML
  1. var elem = document.querySelector('h1#someId');
  2. window.getComputedStyle(elem).display;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.