tomouse
Technical User
- Aug 30, 2010
- 50
Hi,
I haven't worked on websites for years and years and don't really know enough about the capabilities of CSS to know whether it is the right tool for my job. I do hear that tables are a big no-no nowadays, so I'd like to avoid using them if it is bad practice.
I have around 12 labels to display on the left of the page. Against each label there will be data coming from a database, some of which will be multi-line potentially, plus some radio buttons, etc. As is often the style for these things, I want the labels (on the left of the page) to align right and I want the data fields (to the right) to align left.
I expect this is simple using div tags and a style sheet, but after searching around for sometime I have not found the answer. I have CSS setup for applying various styles and things already, but I'm not clear on how to use it to achieve this particular set of layout requirements. Can anyone help?
I haven't worked on websites for years and years and don't really know enough about the capabilities of CSS to know whether it is the right tool for my job. I do hear that tables are a big no-no nowadays, so I'd like to avoid using them if it is bad practice.
I have around 12 labels to display on the left of the page. Against each label there will be data coming from a database, some of which will be multi-line potentially, plus some radio buttons, etc. As is often the style for these things, I want the labels (on the left of the page) to align right and I want the data fields (to the right) to align left.
I expect this is simple using div tags and a style sheet, but after searching around for sometime I have not found the answer. I have CSS setup for applying various styles and things already, but I'm not clear on how to use it to achieve this particular set of layout requirements. Can anyone help?