Get CSS style from PHP

Posted by rpSetzer on Stack Overflow See other posts from Stack Overflow or by rpSetzer
Published on 2009-09-09T11:47:58Z Indexed on 2010/05/08 17:28 UTC
Read the original article Hit count: 172

Filed under:
|

I am parsing pages using Simple DOM parser. It is neat, but I would like to get the applied css style for each element. Not only the inline styles, but every style it applies to that element, being it inline, in-page or external.

Is there a class that does that? If not, how would you do it? I do not really care about overriding styles, cascade, or browser specific styles. Having all the directly applied styles would suffice.

© Stack Overflow or respective owner

Related posts about php

Related posts about dom