Re: [css-d] id and class selectors

2010-07-21 Thread Philippe Wittenbergh
On Jul 22, 2010, at 12:26 AM, Gabriele Romanato wrote: > Kris, you should basically use cascade. For example, if you have a > structure like this: > > > > > > > > > you can do this: > > #test ul {} > #test ul li {} And you certainly can optimise those selectors for better performance

Re: [css-d] id and class selectors

2010-07-21 Thread Bobby Jack
--- On Wed, 7/21/10, Gabriele Romanato wrote: > Kris, you should basically use > cascade. For example, if you have a  > structure like this: > > > > > > > And you /probably/ shouldn't have a structure like that, since: can usually be styled accordingly. YMMV, of course. - Bobby __

Re: [css-d] id and class selectors

2010-07-21 Thread Gabriele Romanato
Kris, you should basically use cascade. For example, if you have a structure like this: you can do this: #test ul {} #test ul li {} if you want to apply particular styles to several lis, you can use classes. On the contrary, if you want to stylize only one element, use an ID. HTH ^

Re: [css-d] id and class selectors

2010-07-21 Thread Philip Taylor (Webmaster, Ret'd)
TriState Advantage, Kris Jacobson wrote: > Thank you for this article, I found it a good reinforcement of using id's and > class's. > I have a questions on styling lists and links in a div. > I have been styling lists using id's > example > #div ul > #div li > #div li a > #div li a:hover > I fo

[css-d] id and class selectors

2010-07-21 Thread TriState Advantage, Kris Jacobson
>Hi! Today's my birthday. Here's a gift for you: >http://onwebdev.blogspot.com/2010/07/css-id-and-class-selectors-details.html Thank you for this article, I found it a good reinforcement of using id's and class's. I have a questions on styling lists and links in a div. I have been styling lists