I have a table whose width is 80% of screensize. This table contains my menu items. Menu items are in the form of table cells. The design I want is that each cell should only be as wide as the text inside it. But I also want a last cell, that will be empty and be as wide as the remaining space in the table. I.E I want the last to inherit the width of the table (remaining space).
But, all the cells get stretched when I increase table width instead of them just fitting to their text.
How do I stop this from happening?
- I want all but last of the cells to exactly fit their text.
- I want the last cell to take up all the remaining space.
Thanks!