I am having issues with my CSS. I am trying to make information display in 2 columns, denoted by the .left and .right classes.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT: Altering answer based on comments.
You are displaying tabular data – so use Tables. You can avoid nested tables by using the tbody tag, as demonstrated by this similar question:
For this solution, what you’ll do is create a table. Each TBODY will represent one ‘group’ of data. In each group, the first column will be for the metadata (like thead), and the second column will be the actual data:
You can then style more easily using an external stylesheet, perhaps using the :nth-child selector and / or the colgroup tag or Javascript.
You might also get more answers if you re-name your question to something like
"How to display tabular data with left hand column as key".