ol

Including the numerals from an <ol> in the CSS background

I feel very noobish asking this, but I can't seem to figure it out... I have a standard <ol> that lists List item List item List item etc. In my CSS I would like to include the entire <li> in the background color, for instance (in my very best ASCII representation): ---------------- | 1. List item | <----- box = solid background c...

Set values of LI tag in HTML

I have a Ordered list that I need to set the # values for. Something like: <ol> <li ShowValue=34>apple</li> <li ShowValue=45>pear</li> <li ShowValue=55>car</li> </ol> So that they display with the numbers I assign 34.apple 45.pear 55.car Is there a way to tell the LI what number it should show? ...

IE6+7 showing problems with an ordered list

IE6 and 7 seem to like to push the list left, and cut off the numbers at www.qwibbledesigns.co.uk/preview/aurelius/about.html , near the bottom. Does anyone know whats going on? ...

Ordered numbers bold without adding more tags

How do I get the ordered numbers bold without adding more tags? Possible in jQuery? first element secondelement thirdelement 1. first element 2. secondelement 3. thirdelement Best regards hakan ...

Ordered list items are not correclty updating to the appropriate step number.

<ol type="1"> <div style="margin: 1em 0; margin-left: 45px;"> <li> <div style="margin-top: 5px;"> Div Both before and after Li..... voima </div> </li> </div> <div style="margin: 1em 0; margin-left: 45px;"> <li> <div style="margin-top: 5px;"> rohkeus </div> </li> </div> <div style="margin: 1em 0; margin-...

HTML hiding content in the middle of UL or OL

Hello! I have long text that gets hidden if it exceeds 300 characters. Hiding is done with a <span> that has style="display:none;" set. Basically, after the 300th caracter the rest of the content in wrapped inside that display:none span. The algorithm is clever enough not to break text in the middle of a tag, so the invisible span wil...