On Tue, Feb 17, 2009 at 4:13 PM, Bill Brown <[email protected]> wrote:
> [email protected] wrote: > > It seems to be a little-known fact that the W3C actually says that > > tables can be used to lay out (actually it says "present") forms. > > More info here: http://developer.cmzmedia.com/?p=71 > > Yes, tables were not intended to lay out a whole web page but they do > > have legitimate uses. There's no need to throw the baby out with the > > bath water. > Personally, I agree with this idea, at least for complex forms. For simple forms, a <div> with some input elements works just fine, and can be easily styled. Regarding ASP.Net in particular, it creates some of the most hideous HTML I've ever seen. Take a look at the output from a "Treeview" control and you'll see exactly what I mean. Try using the CSS adapters [1] to make your life a little easier. A little off-topic, but also of note with ASP.Net is that you can make *any* tag a server-control, just by throwing runat="server" into it. Be warned that this will screw with your element IDs, but if you're not using them (or can use class names instead) it works quite well. I use ASP.Net a lot, and tend to do things like: <div class='formContainer'><input id='name' name='name' runat='server' class='first formElement'></input></div> This will let you do "this.name.Value" on the server side and lets ASP manage the viewstate, while not relying on the ASP controls, so you can easily style your elements via CSS. HTH. [1] http://www.asp.net/CssAdapters/ -- Jerod Venema Frozen Mountain Software http://www.frozenmountain.com/ 919-368-5105 ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
