Module:Sprite: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 10: Line 10:
local cellHeight = sheetHeight / noOfColumns
local cellHeight = sheetHeight / noOfColumns
local outerSpan = mw.html.create('span')
local span = mw.html.create('span')
outerSpan
:css({
:css({
position = 'relative',
position = 'relative',
Line 20: Line 19:
['vertical-align'] = 'middle'
['vertical-align'] = 'middle'
})
})
return tostring(outerSpan)
:tag('span')
:css({
position = 'absolute'
})
:done()
return tostring(span)
end
end


return p
return p