> Here's the problem: > - building a horizontal tabbed navigation bar with these conditions: > > 1. equal width of tabs > 2. centered to the width of the body > 3. preserve centering when adding/subtracting tabs [dynamically generated > links/tabs] > > All menus based upon the <ul> type of lists use a float:left or right > approach. You can center a list if it's enclosed in a div with a fixed width. > However, as mentioned above, this is not a solution to my problem since the > tabs are dynamically generated. > > The tabs can be centered eliminating the float, but, you loose the equal > width condition. > > Any ideas would be greatly appreciated. Needs to work in IE6 and all normal > browsers.
dynamically generated you mean using javascript? if so, use javascript to center it everytime a tab is added or deleted. specifically, use it to set css left to 50% and margin to negative half of width. Virgil http://www.jampmark.com ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/