You are here: Re: css recursion « HTML « IT news, forums, messages
Re: css recursion

Posted by Jon Slaughter on 06/16/07 08:06

"dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
news:doraymeRidThis-430531.17281116062007@news-vip.optusnet.com.au...
> In article <hlLci.33393$Um6.5235@newssvr12.news.prodigy.net>,
> "Jon Slaughter" <Jon_Slaughter@Hotmail.com> 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
>> ....
>>
>>
>> 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=?
>>
>> 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.
>>
>> Any thoughts?
>>
>
> Extraordinary thinking and speaking. "Hypothetical structure",
> "in reality", arbitrary nestings", "a way to apply a style
> recursive to it" (without it even being clear what the "it"
> refers to)...
>

um... maybe you just don't understand those big words in context?

> The pro of a class is that you state a rule once and it refers to
> whatever falls under it in the html, the pro of an inline is that
> it is easier if it is a one off for a particular bit in the html.
>
> If you want all the divs to be be styled the same, you don't even
> need to class anything. div {color: red;] will make all the text
> in all the divs red unless you do something else to stop this. In
> fact, if you want a whole lot of things in a div to be the same,
> you do this and just class or inline the exceptions.
>


No, I need something similar but I need to use only the those divs in the
nesting

div[id="blah"] div
{

}

would probably work.

My question isn't about how to do it but the ramifications between the
different methods as far as efficiency goes.... something you didn't
address.

 

Navigation:

[Reply to this 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

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