I want to right-align an inline element to the right of a div.

I have seen float="right" applied on a span to right align its position. But, it seems semantically incorrect to me, as floats are supposed to move "boxes" or block elements left or right of a container element.

Is my understanding of Float wrong or is there another way of right-aligning inline elements in a CSS-container.

Edit
Report