4 replies [Last post]
sandaru1
Offline
newbie
Sri Lanka
Last seen: 9 years 36 weeks ago
Sri Lanka
Timezone: GMT+5.5
Joined: 2012-03-17
Posts: 2
Points: 3

Hello!
I need to change the order of the list items using CSS
List is coded in HTML in 1,2,3,4,5,6 order but I wont to show
It in different order (1,4,6,2,3,5). Please help if you can

HTML code

<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>

Final Displaying in browser should be as below
1
4
6
2
3
5

Please help. Have a nice day!

sandaru1
Offline
newbie
Sri Lanka
Last seen: 9 years 36 weeks ago
Sri Lanka
Timezone: GMT+5.5
Joined: 2012-03-17
Posts: 2
Points: 3

update

HTML code can not be changed, Even content b/w <li> and </li> can not be changed.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 38 weeks 5 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

That is not a function of

That is not a function of css. You could use javascript.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

farahpervez01
farahpervez01's picture
Offline
newbie
karachi
Last seen: 9 years 36 weeks ago
karachi
Timezone: GMT+5
Joined: 2012-03-22
Posts: 4
Points: 4

wow this is a nice post and

wow this is a nice post and really thanks for this wonderful sharing

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 9 weeks 3 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9674
Points: 810

I know this is a slightly old

I know this is a slightly old and spammed topic Tongue but what would be the point of displaying a numbered list ... that's not in numerical order?

Verschwindende wrote:
  • CSS doesn't make pies