Thread:CzechOut/@comment-26955746-20150716232203/@comment-6475116-20150717164308

Iwantacallisto wrote: Curiouscrab wrote:

On the sample syntax you have the parameter state set to mw-collapsed. If this isn't used correctly (with either mw-collapsed or mw-uncollapsed) then it won't function properly. Maybe I'm not understanding you, but I'm not sure if you know exactly what I'm talking about. I know how to set the state of a single navbox (like the sample one above) to be collapsed or uncollapsed by default. I'd like it so that if I add a navbox to a page and it's the only one on it, its state will be automatically uncollapsed. If I then add an additional navbox, when I go on that page I want both of them to be collapsed by default. Where is the source code that you are using? It might be a broken JS loop that's affecting the boxes wacky. Iwantacallisto wrote: Try this: This will reduce all that and clean up your work. Also, that puts the padding around the whole thing with class navbox-list. For example,  the padding would be for the whole box as a whole, not the individual text. I think this might be what the issue you're having is. Although, it seems to be working for me. Thanks, I added it but I still don't seem to be seeing the 7px left padding for example. Could the actual Navbox template (not the MediaWiki CSS) be the problem? On the template, there appears to be a section containing the text "padding: 0px;" which overrides the above styling. The template does have the issue. This issue is present just before the parameters liststyle, oddstyle, and list1style.