Divs vs. Tables for Forms

Out of context: Reply #3

  • Started
  • Last post
  • 19 Responses
  • SteveJobs0

    It may not sound difficult, but for me it is. And one thing I failed to mention is that the form itself has width constraints and it'd be nice if the fields expanded so that they were flush with the right side of their container.

    Here's a quick visual reference I put together using tables. It's not 100% flexible, but was easier to wrap my brain around than trying this with divs. The idea is that the form which could have different label widths (which in my case is due to different translations of a word) will maintain some kind of consistency in spite of the those varying label widths.

    What I have miiiight work well enough for my needs (still playing around with it), but I figured I'd run it past anyone here who felt strongly against the use of tables, and would offer a reasonas to why.

View thread