| re: Draw frames around some items
Keith Bowes <do.not@spam.me> wrote in message news:<1066254640.834784@cache3>...[color=blue]
> Kai Grossjohann wrote:[color=green]
> > I have a file which contains component definitions, along with their
> > x/y coordinates and width and height. Examples for components are a
> > short text string, a text entry field, a date entry field, a
> > selection box, a checkbox.
> >[/color]
>
> Is there a reason you can't use <fieldset> for that:[/color]
I didn't know that <fieldset> exists. Thanks for pointing this out.
Does this play well with my table layout? I think it would lead to
unbalanced start/end tags, if applied naively. But I am naive, so how
to apply it non-naively?
Let's say the original meta data specify four controls:
(1,1) - (20,5) text field A
(10,10)-(50,40) frame
(12,12)-(35,20) text field B
(55,10)-(65,15) text field C
As you can see, the frame frames text field B only. Thus, the HTML
code needs to look like this: the <fieldset> tag must come before the
text field B and the </fieldset> tag must come after text field B.
But my row/column algorithm will produce a table with 3 or 4 columns.
The first row contains text field A, the second row contains the frame
and also text field C, the third row contanis text field B.
So I get something like
....<tr>...<fieldset>...</tr>...
....<tr>...</fieldset>...</tr>...
which means unbalanced start/end tags.
Ideas?
(I hope you can understand what I mean; I fear that the above is not
explained very well.)
Kai |