From StrategyWiki, the video game walkthrough and strategy guide wiki
Revision as of 21:28, 24 January 2024 by Pakuchi (talk | contribs) (Added a switch nested in an if statement, in case an editor wishes to change the align-items property to something other than stretch. It doesn't seem to effect already existing instances of CBC, so I'm saving this with cautious optimism.)
Jump to navigation Jump to search

Template to contain boxes of content that flex. Should precede a series of <div> boxes with content inside them.

After all boxes are defined, close the template with </div>.

This template has one optional variable that can be used to change the align-items style property. If variable is not an acceptable property type, or if there is no variable, then the stretch property type is used as default. Here is a list of acceptable parameters:

  • stretch. The default parameter. Forces all items in the CBC to stretch to the size of the largest one, regardless of their contents.
  • flex-start. All items are attached to the top of the box. The size of each item depends on the contents of that item.
  • flex-end. All items are attached to the bottom of the box.
  • center. All items are attached to the center of the box; i.e. the center of each item is aligned with the center of the CBC.