Posted by Jon Slaughter on 06/16/07 08:08
"Adrienne Boswell" <arbpen@yahoo.com> wrote in message
news:Xns99513D2E8BEBarbpenyahoocom@69.28.186.121...
> Gazing into my crystal ball I observed "Jon Slaughter"
> <Jon_Slaughter@Hotmail.com> writing in
> news:hlLci.33393$Um6.5235@newssvr12.news.prodigy.net:
>
>> 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?
>
> div {background-color:#fff; color:#000} /* will style any div element */
>
> What are the pro's and cons of inlining or using
>> class=?
>
> div.gray {background-color:#c0c0c0; color:#fff} /* will style any div
> with the class gray */
>
> <div style="background-color:#c0c0c0; color:#fff}">This div is gray and
> does not use an external stylesheet so is harder to maintain</div>
>
>>
>> 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?
>>
>
> Your example above does not seem like it has semantic structure, it seems
> like div soup. It looks like some hierachial structure, so might be more
> suited to list markup and/or headings instead of nested divs.
>
no semantic structure? Its a nested set of divs... thats the structure. You
are right about the hierarchial structure and I did think about lists and
maybe thats a better way to go but I feel that its probably equivilent to
the divs as I wouldn't really gain much advantage using them(except maybe
the automatic indention.
> Think about the structure of the page, and then style it accordingly.
huh?
Navigation:
[Reply to this message]
|