CSS object?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

C# web apps in VS 2003 .net1.1
Is there such thing as a StyleSheet object that I could instantiate and then
load up a CSS and then refer to the various rules, classes of the css?

I want to use a regular css file but be able to load it up and then apply
the rules and classes to individual objects on the page as desired.

Happy New year to all !
Jeff
 
That sounds exactly what we are trying to do. We are using object naming
conventions to identify objects and then programatically applying style
classes based on object names. For now we have to stick with 1.1.

Am just looking for more compact means of accessing the style sheet.
Thanks for the tip.

Jeff
 
I'd rather prepare various CSS files for individual themes, then use
javascript's document.styleSheets object(or if you don't need to change the
styles dynamically, use <link> tag) to load the CSS file as needed.
 
Back
Top