Is there a way to precisely position a background image with CSS? Code:
.content h2.productSpotlight {background:url(/images/spotlight.jpg) no-repeat; padding-left: 35px;}
I want to be able to move the image around so its more flush with the H2
Thanks
Yes, you can give an offset position for the
backgroundproperty, for example:This will shift the background image 10px from the left corner and 5px from the top. You can also use negative values to shift in the opposite direction.