andrewmta
02-20-2007, 01:29 AM
I am trying (very hard) to renounce my table ways and learn how to use CSS to achieve the same design effects.
I'm running into a problem though. Currently, I am trying to transform a horizontal table that has a fixed with. The <TD>'s in the table have no set width, so depending on how many <TD>'s happen to be in the table they stretch or shrink to ensure that all of the <TD>'s fit within the set width.
In this way I can have a dynamic menu and add/subtract menu items on the fly while always maintaining a menu that fits in my design template. The table cells which house each menu item shrink or grow to fill the entire space.
I have searched and searched and don't seem to be able to find an example of a CSS based menu that has a fixed div width and contains divs/li etc. that automatically resize to fit within the parent div width as menu items are added/removed.
Is this possible in CSS? Would anyone be willing to point me in a direction where I could find an example of this sort of menu, or perhaps help me to understand how I might achieve it?
I'm willing to utilize a solution that is more complicated than a table if it helps me to learn to be less reliant upon them. Thank you sincerely for your time and help.
I'm running into a problem though. Currently, I am trying to transform a horizontal table that has a fixed with. The <TD>'s in the table have no set width, so depending on how many <TD>'s happen to be in the table they stretch or shrink to ensure that all of the <TD>'s fit within the set width.
In this way I can have a dynamic menu and add/subtract menu items on the fly while always maintaining a menu that fits in my design template. The table cells which house each menu item shrink or grow to fill the entire space.
I have searched and searched and don't seem to be able to find an example of a CSS based menu that has a fixed div width and contains divs/li etc. that automatically resize to fit within the parent div width as menu items are added/removed.
Is this possible in CSS? Would anyone be willing to point me in a direction where I could find an example of this sort of menu, or perhaps help me to understand how I might achieve it?
I'm willing to utilize a solution that is more complicated than a table if it helps me to learn to be less reliant upon them. Thank you sincerely for your time and help.