How do you align a block item to the right edge of its parent (with CSS)?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-03-24T05:38:46Z
Indexed on
2010/03/24
5:43 UTC
Read the original article
Hit count: 134
I am aware that you can center a block item by setting the left and right margin to auto
.
However, is it possible to align it to the right edge? And how would this be done?
Edit: without using float: right
(because it doesn't seem to work, at least not with <ul>
's)
© Stack Overflow or respective owner