Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to move background-image code from .css file to .html file? Reply To: How to move background-image code from .css file to .html file?

#238285
Shikkediel
Participant

I think you’d have to inline some of the other background properties for that as well. That particular one would be background-repeat: no-repeat. You could do a shorthand version by the way :

style="background: url(img/item.png) 482px -2px no-repeat;"

Note that the child element isn’t actually positioned inside the resource_select div until that has been given position: relative. At the moment it’s position will be related to body.