use span instead of a tag to prevent location change
ensure parent div is block
cast scope values to int