I have a PHP array that I want to increment through and output the information in a table. The only problem is the way HTML tables are organized. I want to output the data vertically.
For example – the first row shows every day of the week, then below each day it would show vertically what food some restaurant is serving. It would show 5 dishes straight down from each day of the week.
Since tables are separated into <tr> (horizontal) and then <td> that only gives you horizontal output. So the only way I can think of an answer is either a PHP answer or a CSS/html answer.
Example:
TR - TD - TD - TD
TR - TD - TD - TD
TR - TD - TD - TD
Is there a way to have <tr> display vertically and then be seperated by <td> horizontally?
Example like this:
TR TR TR
| | |
TD TD TD
| | |
TD TD TD
Figured it out. If you add
display: blockto the<td>elements then they start stacking on top of each other. Maybe im just burnt out and over thought the answer… Thanks anways