> -----Original Message----- > From: Deanna Schneider [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 26, 2005 10:56 AM > To: CF-Community > Subject: Re: Time to get with the program... > > You know, the thing that irks me is specificity issues - or my poor > understanding of them. Say, for example, you have a table, you can > give it a class and then do all your styling based off the the table > structure. So, for example, look at this css. > > table.dashboard th { > text-align: left; > } > ..title { > text-align: center; > } > > But, say, then you want to apply an existing class to a th within that > table. > <table class="dashboard"> > <tr> > <th class="title">...</th> > </tr> > </table> > > In my mind, the logic should be that even though there's a class on > the table, the class on the th is closer to the source - so more > specific. But, noooooo. The th won't take the title class unless you > go back to the css and add !Important to the text-align: center spec.
There are definitely bugs in the cascade model (especially in Netscape but also in IE were tables are concerned) but you can do this. It should be cleaner, but it is doable without browser hacks (unlike column layouts). ;^) You can specify styles to only apply to certain nested or named (ID'd) elements effectively letting you apply your own cascade model. Unfortunately these options aren't very well understood at all - it seems like most people just don't know they exist and most tutorials I've seen pay minimal lip service to them. It's annoying because I think that they're fundamental to understanding how CSS works. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Flash for programmers - Flash MX Pro http://www.houseoffusion.com/banners/view.cfm?bannerid=56 Message: http://www.houseoffusion.com/lists.cfm/link=i:5:166420 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54