I would like to do this:
<div style="float: left;
width: 59px;
background: transparent url('http://download.com/47.jpg') no-repeat scroll -132px -1px;"
class="cIconSmall">
</div>
and I'm thinking I should use this:
$("#YourElementID").css({
float: "left",
width: "59px",
background: "transparent url('http://download.com/47.jpg') no-repeat scroll -132px -1px"
});
Any ideas?
Thanks
$('#YourElementId'), you needed to do$('.YourClassName')since the div has a Class and not an Id