Template:CSS image crop: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
<div style=" | <div style=" | ||
position:relative; | position:relative; | ||
top:-{{ #expr:({{{oTop}}}-1)*32}}px; | top:-{{#expr:(({{{oTop}}}-1)*32)}}px; | ||
"> | "> | ||
Revision as of 14:48, 14 May 2016
usage: fill in the image id divided by 1000 (so just the first thousand number) and then the other 3 numbers at oTop. So if you fill in 1 and 111 it displays item 1111.
{{CSS image crop|ImageID/1000 = 1 |oTop = 111 }}