I am not sure if this or the HTML forum is the proper area to post this “question” but I will try it here first. Is there a way to mod the MARKUP so that it will count down instead of up?
Lets say the challenge was to build a Letterman style Top 10 list that was semantically correct and read correctly with or WITHOUT CSS.
Now for those not into latenite TV… a TRUE top 10 list is a reverse countdown, otherwise it’s rather anticlimactic.
I am thinking it’s job for a OL, the 10th item being the first , and the 1st beight the last ( just as it would be read by Mr. Letterman). The count down should be can achieved with CSS using a counter-reset and counter-increment… but when stiles are OFF , the top ten now reads backwards.
I was thinking ( and I know this code is deprecated…) of something like:
<OL start=“-10”>, the only problem being that the count down (up) now has a negative sign in front of each number… argh. nothing is ever simple.
right now the only thing I can think of assign ( deprecated again) a “value=?” to each LI , but that isnt very graceful…
But yes, the changed posed is when CSS off it should still carry the same semantic content. but it seems HTML can only count UP and not down??? Also it IS a list… using <P> would not carry that semantic would it?
But yes, the changed posed is when CSS off it should still carry the same semantic content.
Isn’t that what my example does unlike the method shown here which is nonsense with css of.
In my example “test j” is always number 10 whether you have css on or off but in the counter method only the number changes and therefore the information presented is incorrect.
It does seem to me to be a problem with counters in that if you can organise your counters then there should also be a relationship between the data and the counter that is not lost when css is turned off.
My solution wasn’t meant to be anything other than a simple trick anyway and as Rudy pointed out would break if the data ran to two lines or more.
The counters method and the html5 developments were interesting though