Reply to Re: css recursion

Your name:

Reply:


Posted by Harlan Messinger on 06/17/07 08:49

Jon Slaughter wrote:
> Say I'm giving a hypothetical structure such as(in reality it would be more
> complicated with arbitrary nestings)
>
> <div id="PageComments">
> <div>
> Mike Jones - Subject
> <div>
> Jone Smoth - Subject2
> <div>
> Mike Jones - Subject2
> </div>
> </div>
> <div>
> Jeff - Subject3
> </div>
> </div>
> <div>
> Mike Applehaead - Subject is dead3
> </div>
> <div>
> Cable - Subject is dead5
> </div>
> </div>
>
>
> Is there a way to apply a style recursive to it to so that each div is given
> the same style? What are the pro's and cons of inlining or using class=?

#PageComments div { [styles] }

Especially if every DIV is supposed to have the same style, why *would*
you inline if you don't have to?
>
> What I'm afraid of is that if I use some type of css recursion that it might
> slow down the browser when it is applying the styles.

Every element on the page is styled in some way or other whether it's a
purely browser-default way or a way that incorporates your own
instructions.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация