Scripsit Man-wai Chang:
I am just curious about the possibility of using CSS to layout an
input form which consist of repeating groups of labels+textbox
I'm not, because it's not something that should be done in situations where
there are several textboxes per label.
In CSS terms, the best approach to this wrong problem would be the use of
table-related values for the display property. That's not supported by IE.
Even if it were, it would be odd to resist the idea of using a table for
tabular data in markup and then use CSS to make the stuff look like a table.
For a more reasonable idea of having one label and one input element per
line in a tabular manner (in two columns, really), there are many possible
approaches. You could play with float: left or with positioning. But why? If
it's logically a matrix with texts in one column and associated input fields
in another column, why wouldn't you make it a table in markup?
(attached a picture).
You thereby prevented many people from seeing your message at all, because
servers may filter out messages containing binary data (at least in
non-binary groups).
Never post an image in a comp.* group. Post a URL instead. If needed, first
upload the material onto a web server. (You should be able to do that,
especially since you ask in a www related group.)
I wonder whether it will be easier do it in CSS
Easier than what?
so that the PHP codes would not mingle with the layout stuffs.
You didn't mention anything about PHP previously, and I don't see how it
relates.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/