Read external stylesheet values

B

Billy Cousins

Can anyone tell me how to programmatically read the values from a stylesheet
that is linked into my asp.net app? I can read styles that are declared in
the HTML code, but have not found a way to get to the external stylesheet.
For example, I want to read the font-size and font-family from a class in
the stylesheet.
 
E

ESPN Lover

You're best bet will be to load the entire css file into a string and parse
it for the class and then parse out the font-size and font-family.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top