SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 28
-
Mar 17, 2003, 13:48 #1
- Join Date
- Jan 2002
- Posts
- 457
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ever wanted to have list items in reverse order?
For instance, when creating a Top Ten list. Currently you can not do this with xhtml or CSS. If you think it would be useful, reply to the following topic.
http://lists.w3.org/Archives/Public/...3Mar/0111.html
-
Mar 17, 2003, 14:19 #2
Not sure why you'd want to do this. If you are hand-jamming the code, why not do it in whatever order you want it to display. If it's a function, then ORDER your query results ASC or DESC (in php)
-
Mar 17, 2003, 14:31 #3
- Join Date
- Jan 2002
- Posts
- 457
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Because I'd like to do it without having to write PHP code. I also would like for the code to validate, instead of having to use span, and nbsp codes.
-
Mar 17, 2003, 14:34 #4
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
it would also be semantically marked up correctly. nah, it makes sense, josh.
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 17, 2003, 14:37 #5
I must have missed the point since I am all screwed up trying to learn other languages. Is it intended to be a displaying function?
-
Mar 17, 2003, 14:44 #6
Josh, are you saying some CSS like this?
Code:ol { list-order: reverse; }
-
Mar 17, 2003, 14:47 #7
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
exactly. i think it's just a logical addition to the spec. if you have ordered lists, you should be able to define the counting order...
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 17, 2003, 14:50 #8
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Knightime
Code:<ol style="list-order: reverse"> <li>one</li> <li>two</li> <li>three</li> </ol>
Code:3. one 2. two 1. three
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 17, 2003, 15:09 #9
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hmmm...people on the w3 list seem to think what josh meant is that this reverse order would actually reverse the order in which the list items are displayed, compared to how they appear in the source. not sure what he meant now...just to affect the visual, automatic numbering, or actually rejig the order ?
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 17, 2003, 15:13 #10
- Join Date
- Jan 2002
- Posts
- 457
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by redux
That is exactly what I was intending.
-
Mar 18, 2003, 09:29 #11
- Join Date
- Oct 2001
- Location
- Estonia
- Posts
- 141
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This requires, that whole list must be known (browser has to read it all before displaing anything) and markup must be correct or browser will display something very wrong (if anything at all)
(2B) or (not 2B) = FF
-
Mar 18, 2003, 12:29 #12
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Hulkur
and markup must be correct or browser will display something very wrong (if anything at all)re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 18, 2003, 20:27 #13
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hummm
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> <head> <title>My CSS Example</title> <style type="text/css"><![CDATA[ ol { list-style: none; counter-reset: topten 11; } li:before { counter-increment: topten -1; content: counter(topten) ") "; } ]]></style> </head> <body> <ol> <li>Three</li> <li>Two</li> <li>One</li> </ol> </body> </html>
~~IanLast edited by Ian Glass; Mar 18, 2003 at 21:48.
-
Mar 18, 2003, 21:09 #14
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
please close your li tags, ian
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 18, 2003, 21:51 #15
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Just a mockup... There, feel better? :-p
Oh, and at least I've never used presentational markup on the forums, mister <b> </b>
~~IanLast edited by Ian Glass; Mar 18, 2003 at 21:57.
-
Mar 18, 2003, 22:03 #16
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Oh, great! Now, the CDATA junk ruins it. Thanks a whole bunch, redux. Don't you feel helpful now! :-p
Take that out if you use it, why don'cha.
~~Ian
-
Mar 19, 2003, 04:45 #17
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Ian Glass
yeah, i do feel better now though. thanks ian
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
-
Mar 19, 2003, 07:50 #18
Originally Posted by redux
-
Mar 19, 2003, 10:00 #19
- Join Date
- Oct 2001
- Location
- Beyond yonder
- Posts
- 2,384
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by redux
Code:<!-- yadda --> <link rel="stylesheet" href="yadda.css"/> <!-- yadda -->
:-p
~~Ian
-
Mar 19, 2003, 11:07 #20
- Join Date
- Jan 2002
- Posts
- 457
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Opera has less than 1% market share.
-
Mar 19, 2003, 11:54 #21
- Join Date
- Jun 2001
- Location
- Before These Crowded Streets
- Posts
- 9,446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
...but it's the most standards-compliant and worthy to be used a general measuring stick.
-
Mar 19, 2003, 12:23 #22
Originally Posted by Sketch
Oh yeah, and typing this from Opera 7, it still doesn't support accesskeys! Try pressing alt+s to post a reply; works in IE and Moz, but not Opera.
-
Mar 19, 2003, 12:24 #23
Originally Posted by Joshua Clinard
-
Mar 19, 2003, 12:31 #24
- Join Date
- Jun 2002
- Location
- Montana, USA
- Posts
- 647
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:ol { list-order: reverse; }
If so, that would be really cool and I'd go for it.
Kudos for the good idea.Ryan
-
Mar 19, 2003, 14:02 #25
- Join Date
- Apr 2002
- Location
- Salford / Manchester / UK
- Posts
- 4,838
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
WaSP Accessibility Task Force Member
splintered.co.uk | photographia.co.uk | redux.deviantart.com
Bookmarks