floating list elements
when i float a list to the right, their order is reversed why is that?
for example if i have a list that is like this inside of a div element.
when i try to float it to the right (instead of showing it as first,second,third, it shows it as third,second,first.
anyone know why it is? anything i have to do?
change the div ul li to float right and u'll see how it changes the order.
Sarmen, the reason the order is reversed is that you float each element and not the list itself. So take each item from the top of the list down and float it right: you get what you have. Item 1 becomes 3, and 3 becomes 1.
The given examples show you a good way to float it on the right without reordering the list.
|All times are GMT. The time now is 03:44 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0