|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CSS object?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 The closest you'll get to your expressed objective is by using 2.0 with a
Theme, or a StyleSheetTheme and Skins as you can declare a SkinId on any server-side control. <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/ MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h Show quote "jeff31162" <jeff31***@discussions.microsoft.com> wrote in message news:4DFED809-5C37-42B9-9CBD-73A16CE0B954@microsoft.com... > 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 Show quote "clintonG" wrote: > The closest you'll get to your expressed objective is by using 2.0 with a > Theme, or a StyleSheetTheme and Skins as you can declare a SkinId on any > server-side control. > > > <%= Clinton Gallagher > NET csgallagher AT metromilwaukee.com > URL http://clintongallagher.metromilwaukee.com/ > MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h > > > "jeff31162" <jeff31***@discussions.microsoft.com> wrote in message > news:4DFED809-5C37-42B9-9CBD-73A16CE0B954@microsoft.com... > > 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 > > > > > 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. Show quote "jeff31162" <jeff31***@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:4DFED809-5C37-42B9-9CBD-73A16CE0B***@microsoft.com... > 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 > |
|||||||||||||||||||||||