Is there a better way to have the same output generated by the following code?
The HTML code is:
<div class="imaged backgrounded"></div>
<div class="title">
Title test text
</div>
The CSS code is:
.imaged {
background: transparent url("/images/sprites.png") no-repeat;
float: left;
height: 24px;
margin: 0 8px 0 0;
width: 24px;
}
.backgrounded {
background-position: -16px -106px;
}
.title {
display: inline-block;
margin-top: 2px;
}