Difference between revisions of "Template:CSS image crop"

From Emps-World Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Please don't mess with this page unless your name is Mary!  
 
Please don't mess with this page unless your name is Mary!  
  
<pre><onlyinclude><onlyinclude></onlyinclude>
+
<pre><onlyinclude>
 
<div style="
 
<div style="
 
width:32px;
 
width:32px;
Line 20: Line 20:
 
</div>
 
</div>
 
</div>
 
</div>
</only<noinclude></noinclude>include></pre>
+
</onlyinclude></pre>

Revision as of 19:07, 20 August 2015

Please don't mess with this page unless your name is Mary!

<onlyinclude>
<div style="
width:32px;
height:32px;
overflow:hidden;
position:relative;
float:left;
padding: 0px;
margin: 0px;
">
<div style="
position:relative;
top:-{{ #expr:({{{oTop}}}-1)*32 }}px;
">

[[File:{{{ImageID/1000}}}.png|left|caption]]

</div>
</div>
</onlyinclude>