You can do it with javascript, as the entire content of a stylesheet is accessible as a variety of data structures, but you can't do it with CSS itself.
cheers, barneyb On Wed, 20 Oct 2004 18:52:47 +0200, Mark Drew <[EMAIL PROTECTED]> wrote: > On a similar note, as I have been doing this *right now* I wonder if > the fllowing is possible: > (excuse the pseudocode. > > <style> > .mystyle1 { // some styles here } > .mystyle2 { //a different stule here } > > //now change mystyle1 to mystyle 2 > > .mystyle1 { //overwrite with mystyle2 } > > </style> > > Basically I want to replace the styles in mystyle1 with those in mystyle2 > > any ideas? > > MD > > > > > On Wed, 20 Oct 2004 09:33:07 -0700, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > Yes, you can nest IDs. There isn't a "right" one for referencing a > > certain element. If the element is unique in a document, use ID, but > > if it's one of many, use class. Classes are more general, so I tend > > to use those when I can, reserving ids mostly for page layout tasks > > (rather than formatting and such), but that's nothing more than a > > really loose guideline I use. > > > > cheers, > > barneyb > > > > On Wed, 20 Oct 2004 12:06:20 -0400, Damien McKenna > > <[EMAIL PROTECTED]> wrote: > > > Which is the more correct method for calling CSS styles, to use the id > > > attribute or the class attribute? Can IDs be nested, e.g. #box #inside > > > #field {...}, like classes can be, e.g. table.box th.inside td.field {...}. > > > -- > > > *Damien McKenna* - Web Developer - [EMAIL PROTECTED] > > > <mailto:[EMAIL PROTECTED]> > > > The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 > > > "Nothing endures but change." - Heraclitus > > > > > -- > > Barney Boisvert > > [EMAIL PROTECTED] > > 360.319.6145 > > http://www.barneyb.com/blog/ > > > > I currently have 2 GMail invites for the taking > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182030 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54