I am in need of assistance with designing an HTML layout.
My goal is to display 3 columns for each table row as described below:
Column #1 will contain text only.
Column #2 will have an inner table, which may consist of 1 or 2 rows depending on the contents of Column #3.
Column #3 will contain multiple rows, each listing the name of a food item. Healthy items should be listed first, followed by any unhealthy items. If there are only healthy items, Column #2 will display a single row with the word "HEALTHY" in it. Otherwise, both "HEALTHY" and "UNHEALTHY" will be displayed in separate rows.
Column #2 Column #3
HEALTHY Apple
Pear
Or it could appear as follows:
Column #2 Column #3
HEALTHY Apple
Pear
UNHEALTHY Coffee crisp
Chocolate milk
Both Column #2 and Column #3 should have grids (border top/bottom) for each row.
What would be the best way to implement this?
Please note: The row borders in Column #2 must align with those in Column #3.
I hope my explanation was clear enough.