homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Continue Ordered List
Continuing an ordered list in XHTML

Msg#: 4211178 posted 6:01 pm on Oct 4, 2010 (gmt 0)

I was only able to find limited info on how to do this and there are several different ways to do it but All seem to be a little confusing or you have to learn a new way of doing things. It's actually even easier than you think. What you're doing is basically "pausing" a list so you can insert something. When

you do this in text you use the <div> tag. (Bells ringning now?")


/* This style removes the indentation that <ol> creates. In my document it was 30pt */
.pauselist {margin-left:-30pt;}

<li>Item 1</li>
<li>Item 2
<div class="pauselist">
<!-- Okay now let's continue with the list -->
<li>Item 3</li>
<li>Item 4</li>

------ Results ---------

1. Item 1
2. Item 2


3. Item 3
4. Item 4




5+ Year Member

Msg#: 4211178 posted 2:23 pm on Oct 5, 2010 (gmt 0)


See "start" attribute. It's deprecated but should still work and there's no alternative other than JavaScript I believe.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved