Thread:OH&S/@comment-25364614-20170531111902/@comment-25364614-20170601082808

Inept Wiki User wrote:

I agree with removing the middle column from the Chronology section. Another thing I would suggest is making several sections collapsible (such as the Belligerents, Commanders and Leaders and Casualties and Losses). That sounds doable. Inept Wiki User wrote:

With regards to the labels, I've got a few portable infoboxes with labels in the centre on the MoPai Wiki (though not particularly slim). I'll check the code and test it over here to see if it can do the job.

Edit: Found the relevant code. It is CSS, so I probably won't be able to do any tests with it over here.

/* Central alignment for portable infobox image tabs */ .pi-europa .pi-image-collection-tabs { text-align: center; }

Edit: Just checked something. The tags seem to work for the labels. I saw the edit and it seems to work fine. The only reason I'm hesitant to use the 'center' html tags is that they are obsolete under the new HTML5 standard. The recommendation is to center text using CSS code. I personally haven't tried centering the headings yet; I had enough troube trying to center the subheadings and data fields like miscellaneous casualties, caption, concurrent events and the chronology subheadings. The problem that I'm running into is that while I know what the CSS code for centering objects is, the output doesn't seem to follow what I input most of the time. For example, it was easy to center the caption; no problems there. But for the rest, I found that if the entry I tried to center didn't go over to a the second line, it wouldn't center and just align left regardless of what I tried. Still works if it goes over two lines though, which is why miscellaneous casulaties appears centered in the example in the link. There is at least a part solution to the problem. Rather than me finding a working solution for all cases, the div code in the top level CSS for the wiki can be modified to center at least the headers across all infoboxes. For the subheadings, there should be a solution that can work just for them. So herald, here's looking at you. You have access to the code which can override alignment behaviour for the headings. Herald of meridian :

Slightly miffed at the excess space at the bottom part of the header, right under the "Part of the xxx Arc", but that's just me. That's a product of the smaller font size but I still might be able to do something about that. Leave it to me.