This project has moved. For the latest updates, please go here.

How to retrieve CSS styles?

Feb 16, 2010 at 3:50 PM


I am trying to build a web page parser, and need to retreive CSS styles applied to each HTML element.

I am able to get CSS style applied at element level, but not able to retreieve CSS styles coming through include file or via inheritance.

Is there a way to get that information programatically?

Any pointers will be helpful.


Feb 16, 2010 at 4:02 PM

HAP doesn't provide CSS information past the "class" attribute. For this you will probably be best served using the IE or Gecko# controls and query their DOM implementations.