Template:Page Header: Difference between revisions
From KB42
No edit summary |
No edit summary |
||
| Line 30: | Line 30: | ||
<!-- Title overlay — centred over the image --> | <!-- Title overlay — centred over the image --> | ||
<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: | <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; box-sizing: border-box;"> | ||
<div style="text-align: | <div style="text-align: left; padding: 0.75em 1em; box-sizing: border-box; max-width: 60%;"> | ||
<div style="font-size: 2em; font-weight: bold; margin: 0; line-height: 1.2;">{{{title|}}}</div> | <div style="font-size: 2em; font-weight: bold; margin: 0; line-height: 1.2;">{{{title|}}}</div> | ||
{{#if:{{{title2|}}}|<div style="font-size: 1.25em; margin-top: 0.25em;">{{{title2}}}</div>}} | {{#if:{{{title2|}}}|<div style="font-size: 1.25em; margin-top: 0.25em;">{{{title2}}}</div>}} | ||
Revision as of 22:29, 7 May 2026
Usage
{{Header
|header_img = YourBanner.png
|title = My Wiki Title
|title2 = Optional subtitle line
}}
