Ah, sorry. I was looking at it wrt the literal elements, not as the
representation of an external structure. Apologies.

On Apr 10, 3:52 am, JB <[EMAIL PROTECTED]> wrote:
> A section is just and idea, here it is represented by 'sectionstart'
> divs and 'sectionend' divs, everything within a section should be
> indented progressively based on how deep it is (infinitely deep is
> possible).
>
> On Apr 9, 6:53 pm, Wizzud <[EMAIL PROTECTED]> wrote:
>
> > Actually, no I can't see. Every DIV with #survey contains just one
> > text node - nothing else.
>
> > On Apr 9, 10:27 pm, JB <[EMAIL PROTECTED]> wrote:
>
> > > I've got the following html
>
> > > <div id="survey">
> > >         <br />
> > >         <div class="sectionstart">
> > >             start
> > >         </div>
> > >         <div class="sectionstart">
> > >             start
> > >         </div>
> > >         <div class="sectionend">
> > >             end
> > >         </div>
> > >         <div class="sectionstart">
> > >             start
> > >         </div>
> > >         <div class="sectionend">
> > >             end
> > >         </div>
> > >         <div class="sectionstart">
> > >             start
> > >         </div>
> > >         <div class="sectionstart">
> > >             start
> > >         </div>
> > >         <div class="sectionend">
> > >             end
> > >         </div>
> > >         <div class="sectionend">
> > >             end
> > >         </div>
> > >         <div class="sectionend">
> > >             end
> > >         </div>
> > >     </div>
>
> > > As you can see there are section starts & section ends that can
> > > contain other starts and ends.  I want to leave the html as is, but
> > > visually give some left padding/margin based on how 'deep' the section
> > > is.  I've been trying to get this via jquery but can't seem to get
> > > it.  Say I'm one level deep I want margin-left:20px, if I'm 2 levels
> > > deep I want margin-left:40px and so on...
>
> > > Thanks for the help.- Hide quoted text -
>
> > - Show quoted text -

Reply via email to