Forum:Navbox collapse help

Hi, I'm trying to adjust the width of the different elements in our wiki's navbox template so that the navbox won't shrink when I collapse it with the collapsebutton. The problem is that when I widen the width of the collapse button element from "auto" to "50em" in Common.css, it barely suffices as a good method of maintaining width and forces the navbox to expand from top-to-bottom, placing the title at the bottom of a wider rectangle. Is it possible to adjust the width of the title so that it maintains the width when collapsed? --RayneVanDunem 17:45, 12 March 2009 (UTC)


 * ? - 19:34, 12 March 2009 (UTC)
 * Of which, the collapsebutton or the navbox-title (the former has the width attribute, the latter only has padding)? BTW, the collapsebutton width uses "em" rather than "%", unless the two can do the same job. --RayneVanDunem 19:47, 12 March 2009 (UTC)

Ah the pleasures of collapsible tables against navframe... Any way the only way to sort of fix it is to give the table a fixed width if the content is bigger that what you put when it collapses it will shrink back to the one you set it. I recommend you  that way if some one shrinks or expands its font by browser the table will react the same way --
 * What you did will not work, as you can see in the demo of the template. Your'e giving a width to a cell and when the table gets collapsed/uncollapsed its not of the same dimension, you need to give the width to the table not a cell or row --


 * I always make my tables " ". That way it's 100% no matter what. 14:36, 13 March 2009 (UTC)


 * I developed a new code for making tables collapsibles that remembers the original width of the table, and lets you place the show/hide button whatever you want. Maybe it's time for me to recode it so it would be easy to implement in other wikis --Ciencia Al Poder (talk) -WikiDex 17:40, 13 March 2009 (UTC)