• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Sticky"

From Kancolle Wiki
Jump to navigation Jump to search
m (Keep sticky always on top)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div style="position: -webkit-sticky; position: sticky; top: 0;">{{{1}}}</div></includeonly><noinclude>
+
<includeonly><div style="position: -webkit-sticky; position: sticky; top: 0; z-index: calc(infinity);">{{{1}}}</div></includeonly><noinclude>
 
Make a sticky block element.
 
Make a sticky block element.
 
==Usage==
 
==Usage==
<div style="height: 2000px">
+
<div style="height: 2000px;">
 
<pre>{{Sticky|[[File:RainySeason2020E-4Map.png|500px]]}}</pre>
 
<pre>{{Sticky|[[File:RainySeason2020E-4Map.png|500px]]}}</pre>
 +
----
 
{{Sticky|[[File:RainySeason2020E-4Map.png|500px]]}}
 
{{Sticky|[[File:RainySeason2020E-4Map.png|500px]]}}
 
</div>
 
</div>
 
</noinclude>
 
</noinclude>

Latest revision as of 06:52, 13 April 2024

Make a sticky block element.

Usage

{{Sticky|[[File:RainySeason2020E-4Map.png|500px]]}}

RainySeason2020E-4Map.png