Jump to content

Table-Like Alignment In CSS?


cyber0ne

Recommended Posts

Has anyone seen any nifty tricks for making table-like structures in pure CSS?For example, suppose I have a form with a bunch of fields. A simple way of presenting it would be to have a borderless 2-column table where the left is the field labels and the right is the inputs. That way everything is neatly justified and each input is properly vertically aligned with its label regardless of user font settings, etc.But I tend to agree with the school of though that "if something isn't really a table, don't put it in an HTML table." With all the tips and tricks you guys have written/found, is there anything that covers this subject?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...