I need help with a HTML layout.
I need to show 3 columns for each table row
Column#1 just has some text in it
Column#2 Has a inner table, with either 1 or 2 rows depending on the contents of Column#3
Column#3 Has x number of rows, each word in the row has a name of a food item. Healthy items are listed first, and (if any) unhealthy items are listed.
If there are ONLY healthy items, column#2 will have 1 row with the word “HEALTHY” in it.
Otherwise, it will display HEALTHY, and the 2nd row will have UNHEALTHY (and it has to lineup with column#3)
So it would look like:
Column#2 Column#3
HEATHLY Apple
Pear
Or it may look like:
Column#2 Column#3
HEATHLY Apple
Pear
UNHEALTHY Coffee crispt
Chocolate milk
And each row in column #2 and column#3 should have grids (border top/bottom) for each row.
How can I do this?
Note: The row border in column#2 should lineup with the row borders in column#3.
I hope I explained this clear enough.
I’m not sure what you’re asking for in particular so here goes:
And some pseudo code to generate it:
Apply top and bottom borders with css. Note also the cellspacing=”0″ on the table.