Thread: quick html question

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743

    quick html question

    I thought if you nested an ordered list, it was supposed to change the bullets.

    Code:
    <ol>
    	<li>Hello</li>
    	<ol>
    		<li>World!</li>
    		<ol>
    			<li>Again!</li>
    		</ol>
    	</ol>
    </ol>
    but the "bullet" to all those list items is "1." shouldnt it be changing for each instance of nesting?
    My Website

    "Circular logic is good because it is."

  2. #2
    Stinking it up. StinkyRyan's Avatar
    Join Date
    Jun 2004
    Posts
    61
    switch the li's with ul's
    Because I can't.

  3. #3
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    but a ul is an unordered list....li's are list items...

    edit: i tried it anyways, didnt work

    ol - ordered list
    ul - unordered list
    li - list item
    My Website

    "Circular logic is good because it is."

  4. #4
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You have choices:

    <li type="disc"></li>
    <li type="square"></li>
    <li type="circle"></li>

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    And:
    <li type="1"></li> - Arabic
    <li type="a"></li> - Lower Alpha
    <li type="A"></li> - Upper Alpha
    <li type="i"></li> - Lower Roman
    <li type="I"></li> - Upper Roman

  6. #6
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    yes i know about that

    but in the past when i have nested ordered lists it has automatically chosen the type of bullet each list item gets.

    It started out as I, II, III, then went to A, B, C, then went to 1, 2, 3, then to i, ii, iii, then to a, b, c, and so forth.

    Maybe only older browsers did that? Because I know for sure they did that. And I have read books that say it does that, and my old teachers told me it does that....however maybe it has become deprecated over time?
    My Website

    "Circular logic is good because it is."

  7. #7
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I would imagine that functionality is no longer common practice. I have never been aware of that action taken by the browser.

    Maybe someone on here has an older browser they can test that theory on?

  8. #8
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    considering two teachers have taught that to me, plus i have read it in a book, and it has worked in the past for me, i am about 99% sure it used to work unless i was in some big massive dream world.

    i wish it still did work
    My Website

    "Circular logic is good because it is."

  9. #9
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    It really doesn't matter what you were taught or what you read in a book. The standard has changed very much in the past couple years.

  10. #10
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    http://www.w3.org/TR/REC-html40/struct/lists.html

    The type attribute has been depreciated and it is recommended to use CSS to define your layout.... which is what you should be doing anyways.

  11. #11
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    yes, CSS is god
    PHP and XML
    Let's talk about SAX

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    David - send me the file and I'll test it - I have a PC that still runs MSIE 3.0

  13. #13
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Quote Originally Posted by sean_mackrory
    David - send me the file and I'll test it - I have a PC that still runs MSIE 3.0
    ?? Just copy the code from the OP. That is what he is trying to accomplish.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quick question about replacing laptop harddrive
    By PJYelton in forum Tech Board
    Replies: 4
    Last Post: 01-20-2005, 08:02 PM
  2. Quick File Input Question
    By ProjectsProject in forum C Programming
    Replies: 2
    Last Post: 11-04-2004, 11:39 AM
  3. Quick Question on File Names and Directories
    By Kyoto Oshiro in forum C++ Programming
    Replies: 4
    Last Post: 03-29-2002, 02:54 AM
  4. * quick question *
    By SavesTheDay in forum C Programming
    Replies: 3
    Last Post: 03-27-2002, 06:58 PM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 05:46 PM