Jump to content

Template:CSS image crop: Difference between revisions

From Emps-World Wiki
Mary (talk | contribs)
No edit summary
Mary (talk | contribs)
m Reverted edits by Mary (talk) to last revision by Thomy
Line 1: Line 1:
<onlyinclude><div style="
<onlyinclude><div style="
width:32px;
height:32px;
overflow:hidden;
position:relative;
float:left;
float:left;
padding: 0px;
margin: 0px;
">
">
<div style="
<div style="
position: absolute;
position:relative;
clip: rect(0px,32px,32px,0px);
top:-{{ #expr:({{{oTop}}}-1)*32}}px;
">
">


Line 12: Line 18:
</div>  
</div>  
</onlyinclude>
</onlyinclude>
<nowiki>clip:rect(0px,100px,100px,0px);</nowiki> for a 100x100 image to totally show, so for our atlasses that would be:<br>
<nowiki>clip:rect(0px,32px,32000px,0px);</nowiki>

Revision as of 15:53, 14 May 2016

<div style=" position:relative; top:-Expression error: Unrecognised punctuation character "{".px; ">

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