G
Guadala Harry
Please follow my thinking here and tell me if I'm nuts or if this is a
reasonable thing to do given the objective:
I'd like to present 3 data values on an aspx page - each styled uniquely,
and the total width to be limited to some arbitrary value (400px or so).
Given that I'd like to limit the total width, I can't use a <td> because the
width specified for a <td> specifies a minimum and not a maximum.
Consequently I'll use a DIV because I can specify a width that is the
maximum (anything exceeding that maximum will wrap automatically - which is
what I want).
That takes care of the overall width being limited. Now we still have to
style each of the 3 data values uniquely (will be using css - as in
class=x). The requirement to format each data value uniquely will be met by
placing each data value in its own DIV for which the css class is specified.
My concern is that this all results in three DIVs nested within another DIV
(the 3 for the data values and the "outer DIV" to limit the overall width).
Maybe this is a reasonable thing to do - maybe not.
FWIW: these nested DIVs would be located within a <TD> for general placement
on the page - as I'm using a table layout.
Is this a reasonable way to get the desired result or is there a better way?
Thanks!
reasonable thing to do given the objective:
I'd like to present 3 data values on an aspx page - each styled uniquely,
and the total width to be limited to some arbitrary value (400px or so).
Given that I'd like to limit the total width, I can't use a <td> because the
width specified for a <td> specifies a minimum and not a maximum.
Consequently I'll use a DIV because I can specify a width that is the
maximum (anything exceeding that maximum will wrap automatically - which is
what I want).
That takes care of the overall width being limited. Now we still have to
style each of the 3 data values uniquely (will be using css - as in
class=x). The requirement to format each data value uniquely will be met by
placing each data value in its own DIV for which the css class is specified.
My concern is that this all results in three DIVs nested within another DIV
(the 3 for the data values and the "outer DIV" to limit the overall width).
Maybe this is a reasonable thing to do - maybe not.
FWIW: these nested DIVs would be located within a <TD> for general placement
on the page - as I'm using a table layout.
Is this a reasonable way to get the desired result or is there a better way?
Thanks!