User:HumansCanWinElves/Snippets

__NEWSECTIONLINK__ Snippets are For FandomDesktop unless specified otherwise

Full background on FandomDesktop, using the image that was uploaded on Oasis

 * Fits for a wide centered image. Splitted image would need a different code. Tiled or non-fixed image would need little alteration.
 * The second part is needed to remove the header gradient, which doesn't go up well with the full background image.
 * It's not clear if it is possible to upload another image under the same name once Oasis is removed, since the file has no extension. If not, it's possible to upload to another name (such as Wiki-background.png) and changing the code accordingly.

Center-aligned tab labels, on tabbers or portable infoboxes
For all options, preced selector with  or with   to limit the effect only to one feature

Option 1
(Centered when there are few labels. Scrolling horizontally when there are many labels) (Credit: .krowl25)

Option 2
(Spreading evenly when there are few labels. Scrolling horizontally when there are many labels)

Option 3
(Centered when there are few labels. Centered and breaks into multiple lines when there are many labels) Don't use this method without the wrapping, as this will end up with unreachable labels when there are many (see this thread). Even with the wrapping, an issue may rise in case of a very long single label.

Multiline tab labels
As option 3 above, but can be used without the centering part.

Option 1
(Cooperating with the flexbox) or

Option 2
(Throwing the flexbox away) or