Hi
Is there a way to check what CSS properties are applied to an HTML Element.
I dont want any browser plugin. Using javascript, I want to get a list of all CSS properties set on an html element. If thats not possible, I can always write 100 lines of code and checking the value like if($(“div”).css(“background-color”).length > 0){}, for each and every css property.
Hi Is there a way to check what CSS properties are applied to an
Share
As mentioned, I also recommend you using inspecting tools as Firebug, Webkit Inspector and Dragonfly.
But if you need just a quick check on CSS properties, you can create a quick script. There are some DOM methods and properties that becomes handy, like element.currentStyle and element.getComputedStyle().
Check this out http://blog.stchur.com/2006/06/21/css-computed-style/
Cheers.