I'm trying to put to gether a navigation bar using a table:
- There are n links to different parts of the website
- There is one "logout" link, which is an icon of fixed size
What I'd like to do is the following. The available width for the whole bar (which is known in advance) minus the required width of the icon should be divided equally among the cells containing the n links for navigation (ignoring the size of the links inside, this is not a problem).
Currently, I'm performing this computation in PHP and use to achieve this. However, this does not comply with the XHTML 1.0 Strict standards. According to the W3C validator, I should use CSS to set the width of the column. Problem is: I don't know how to do this, and if it is at all possible. Probably this problem is a hint that I shouldn't be using tables for this, but I have no other ideas at the time.
How can I achieve the effect, using tables or something else, in an XHTML Strict and CSS compliant way? Thanks for any ideas.