I made my menu in tables because I tried with list and the result was not what I expected, then, I couldn't make the LI (menu items) stretch depending of the width of DIV, I saw that I could do this with tables and it worked.
Most menus I see are made in UL lists, but some are in tables too, is there any "rule" or semantic envolved?
And what about table in display property in CSS of HTML lists?
#menu {
display: table;
width: 100%;
border-collapse: collapse;
}
#menu ul {
display: table-row;
}
#menu li {
display: table-cell;
height: inherit;
border: solid 1px;
padding: 0;
margin: 0;
}