Itβs still not easy for me to not want to use Tables to create a layout for the HTML view. I want to run some samples by people and get some opinions.
What would you like to see in html to view details? Who has the least dangerous cross browser? What is the most compatible? Which one looks better if I have a column of static width labels that is right-aligned?
In the Details view, I mean something similar to the following image. alt text http://img261.imageshack.us/img261/5203/crudrl8.png
Table
<table> <tr> <td><label /></td> <td><input type="textbox" /></td> </tr> <tr> <td><label /></td> <td><input type="textbox" /></td> </tr> </table>
Fieldset
<fieldset> <label /><input type="textbox" /><br /> <label /><input type="textbox" /><br /> </fieldset>
Divs
<div class="clearFix"> <div class="label"><label /></div> <div class="control"><input type="textbox" /></div> </div> <div class="clearFix"> <div class="label"><label /></div> <div class="control"><input type="textbox" /></div> </div>
List
<ul> <li><label /><input type="textbox" /></li> <li><label /><input type="textbox" /></li> </ul>
source share