Difference between revisions of "Template:CSS image crop"

From Emps-World Wiki
Jump to: navigation, search
Line 8: Line 8:
 
<div style="
 
<div style="
 
position: absolute;
 
position: absolute;
clip: rect({{#expr:{{{oTop}}}*32}}px,32px,{{#expr:({{{oTop}}}-1)*32}}px,0px);
+
clip: rect(0px,32px,64px,0px);
 
">
 
">
  

Revision as of 15:51, 14 May 2016

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

clip:rect(0px,100px,100px,0px); for a 100x100 image to totally show, so for our atlasses that would be:
clip:rect(0px,32px,32000px,0px);