shapper wrote:
On May 19, 2:48 pm, Bergamot <berga...@visi.comwrote:
>shapper wrote:
>>I have been always using div's for web site design and no tables.
There is a big misconception that *all* tables are to be avoided. False.
Use tables for tabular data, just avoid their use for general layout
purposes. I consider forms to be generally tabular in nature, since
there is a direct relationship between a label and its control. A
2-column table can be perfectly acceptable, but sometimes a fieldset is
a better choice. Like anything else, it depends on the particular data.
>>Look at this form:
http://www.telerik.com/client.net/lo...t-registration...
You should take a look at it with JavaScript disabled. It's not good.
--
Berg
But as far as I can see a field set is not easy to use for aligning
the form elements. I would like to have something like:
First Name: first name textbox
Last Name: last name textbox
Address: address textbox
I think table is the best way to do this right?
I mean, can I make this with CSS?
I have been using CSS for sometime and replicating this kind of forms
using divs and css seems a really hard work if compared with using a
table.
Any idea?
Yes, it can be done without tables. Not really all that difficult
either. Here's an example that I've used a few times, with an ordered
list and styled elements therein:
http://beta.ksscholl.com/jquery/form2col.html
This is but one possible solution, and I'm sure there are some who will
reply that this method is faulty in some way. But it is, IMO, cleaner
than using a table, and degrades gracefully.
--
*** Remove the DELETE from my address to reply ***
================================================== ====
Kevin Scholl
http://www.ksscholl.com/ ks*****@comcast.DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
================================================== ====