Additional BBCodes: gallery and text alignment
Posted: Wed Nov 16, 2022 2:10 am
Gallery BBCode
Attached images can be shown side by side using the gallery or gallery2 BBCodes. The two column layout of the gallery will be shown if the screen width of your device is greater than 1100 pixels.
(works with IMG BBCode as well)
Example:
Positioning of the gallery is possible using the gallery2 BBCode.
All options: left, right, center
Text alignment BBCode
You can align the text with the align BBCode.
All options: left, right, center, justify
Example (CSS style: "text-align: center"):
Attached images can be shown side by side using the gallery or gallery2 BBCodes. The two column layout of the gallery will be shown if the screen width of your device is greater than 1100 pixels.
Code: Select all
[gallery][attachment=0]your_image.jpg[/attachment]...[/gallery]
Example:
(shown are my Fallout 4 characters Sam (the one with the grey skin) and Charly)
Positioning of the gallery is possible using the gallery2 BBCode.
Code: Select all
[gallery2=center][attachment=0]your_image.jpg[/attachment]...[/gallery2]
Text alignment BBCode
You can align the text with the align BBCode.
Code: Select all
[align=center]text[/align]
Example (CSS style: "text-align: center"):
Text
Combined with gallery2 (CSS style: "justify-content: center"):
Combined with gallery2 (CSS style: "justify-content: center"):