Phil Cook wrote:
> What's wrong with this?
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <style>
> span.outer {border: red 1px solid; padding: 20px;}
> span.inner {border: red 1px solid; padding: 10px;}
> span.centre {border: red 1px solid; padding: 0px;}
>
> </style>
> <span class="outer">A<span class="inner">B<span
> class="centre">C</span>D</span>E</span>
> </html>
Apart from there being an echo in here, that only allows a fixed amount
of nesting. I want to allow arbitrary nesting.
(This is basically for printing out expressions containing insane
numbers of brackets. I want to use borders to help untangle the mess in
some kind of visually-sane way...)
Post a reply to this message
|