So, I set the background-position property for the element through the class declaration. And for some reason, chrome, and I assume that all webkit browsers ignore the background-position property.
I like it so
.buttonholder {
background-position: -175px 0px;
}
and
<span class='buttonholder'>
<a href='index.php'>Home</a>
</span>
I took out a tool like firebug in chrome and for some reason the tag appears like this:
<span class='buttonholder' style='background-position: 0% 0%; '>
Although there is no specific style declaration in the element tag. Any advice would be greatly appreciated.
Edit: Apparently, people think I'm trying to use this as a way to position an element. This is not true. I am trying to place a background image.
source
share