Thread:ChrisN34/@comment-39845457-20190909204616/@comment-39845457-20190909224424

From MediaWiki
Revision as of 22:44, 9 September 2019 by imported>Director Boots (Created page with "Also, on a more serious note. Can you add this line of code to the wiki's css to allow the centering of text inside infoboxes? I'm not able to and apparently you have to be an...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Also, on a more serious note. Can you add this line of code to the wiki's css to allow the centering of text inside infoboxes? I'm not able to and apparently you have to be an admin in order to edit that page.

.portable-infobox .pi-caption {
    text-align: center;
}

or this if it doesn't work:

.portable-infobox .pi-data {
    height: 10em;  /* sets height */
    display: flex;
    align-items: center; /* vertically align items or text */
    justify-content: center ; /* horizontally aligns items or text */
}

Thanks again!