Floating an inline element to the right of a div
Posted
by Rajat
on Stack Overflow
See other posts from Stack Overflow
or by Rajat
Published on 2010-03-12T02:13:08Z
Indexed on
2010/03/12
2:17 UTC
Read the original article
Hit count: 185
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 it but it seems semantically incorrect to me as floats are supposed to move "boxes" or block elements to the right or left of a container element.
Is my understanding of Float wrong or is there another way of right-aligning inline elements in a container DIV.
© Stack Overflow or respective owner