Difference between revisions of "Template:CSS image crop"

From Emps-World Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<onlyinclude><div style="
 
<onlyinclude><div style="
width:32px;
 
height:32px;
 
 
overflow:hidden;
 
overflow:hidden;
 
position:relative;
 
position:relative;

Revision as of 15:49, 14 May 2016

<div style=" position: absolute; clip: rect(Expression error: Unrecognised punctuation character "{".px,32px,Expression error: Unrecognised punctuation character "{".px,0px); ">

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

</div>

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);