Template:CSS image crop: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="{{#ifeq:left"> | <div class="{{#ifeq:left"> | ||
<div style="width:32px;height:32px;overflow:hidden;position:relative | <div style="width:32px;height:32px;overflow:hidden;position:relative"> | ||
<div style="position:relative;top:-{{#expr:({{{oTop}}}-1)*32 }}px;left:-{{{oLeft}}}px"> | <div style="position:relative;top:-{{#expr:({{{oTop}}}-1)*32 }}px;left:-{{{oLeft}}}px"> | ||
[[File:{{{ImageID/1000}}}.png|32px]]</div> | [[File:{{{ImageID/1000}}}.png|32px]]</div> | ||
</div>{{#ifeq: {{{Location}}} | center |</div>|}} | </div>{{#ifeq: {{{Location}}} | center |</div>|}} |