Jump to content

Module:Navbar: Difference between revisions

151 bytes added ,  10 years ago
inherit line height on the ul to override the 1.6 default, so that it doesn't take up 2 lines and cause off-centeredness in navboxes like Template:Grand Armee Corps
m>Jackmcbarn
(support collapsible version)
m>Jackmcbarn
(inherit line height on the ul to override the 1.6 default, so that it doesn't take up 2 lines and cause off-centeredness in navboxes like Template:Grand Armee Corps)
Line 99: Line 99:
end
end


local ul = div.tag('ul');
local ul = div.tag('ul')
.css('line-height', 'inherit'); -- otherwise, the default ul line height makes this take up 2 lines in navboxes, and makes the second line off-center


ul
ul
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.