Reputation: 389
I've been searching on how to align items of a list, verticaly, in the right side of a div.
I tried float,
li {
float: right;
}
But it makes the two items be in the right side but not on top of another as I intended.
What I got on Fiddle, as you can see option1 and option2 are in the right side but not vertically aligned.
Upvotes: 0
Views: 628
Reputation: 112
Basically you need to remove float: right; and add text-align:right to UL check out eh jsfiddle link i provided to see the solution
//remove
li {
float: right;
}
// and add
ul {
text-align:right;
}
http://jsfiddle.net/jspatel/F3XgY/
Upvotes: 1