Advertisement:
NameCheap

Poll

Add "howto list inside a list" to the docs

Yes
No

Author Topic: [list] with indented sub items  (Read 3506 times)

Offline shai

  • Newbie
  • *
  • Posts: 5
[list] with indented sub items
« on: November 20, 2009, 02:44:41 AM »
Hi,

How do I indent items in a list to create "sub-lists"?

1. Item1
2. Item2
  a. Itema
  b. Itemb
    *. Item*
3. Item3

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: [list] with indented sub items
« Reply #1 on: November 20, 2009, 04:17:09 AM »
Something like this?
  • Item 1
    • Sub1
    • Sub 2
      • Sub-Sub1
      • Sub-Sub 2
  • Item 2
Code: [Select]
[list type=decimal]
[li]Item 1
[list]
[li]Sub1[/li]
[li]Sub 2
[list]
[li]Sub-Sub1[/li]
[li]Sub-Sub 2[/li]
[/list]
[/li]
[/list]
[/li]
[li]Item 2[/li]
[/list]
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline shai

  • Newbie
  • *
  • Posts: 5
Re: [list] with indented sub items
« Reply #2 on: November 20, 2009, 04:19:41 AM »
Thanks for the prompt response. I tried looking for this in the docs... is this type of use of lists documented anywhere?

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: [list] with indented sub items
« Reply #3 on: November 20, 2009, 04:22:56 AM »
Not really, there is a page on more advanced uses of the [ list ] with different types of bullets. Here However creating a list, inside of a list will give you a sub-list though :)
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline shai

  • Newbie
  • *
  • Posts: 5
Re: [list] with indented sub items
« Reply #4 on: December 22, 2009, 02:35:12 PM »
Hi,

Can I add [code] and [quote] tags inside lists too?

I tried and can't quite get it working...

Your help would be appreciated once again!
« Last Edit: December 23, 2009, 01:09:06 AM by shai »

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: [list] with indented sub items
« Reply #5 on: December 22, 2009, 04:56:19 PM »
as long as you use the full tag [quote]My Quote Here[/quote] it should work.
  • Quote
    Item 1
    • Quote
      Sub1
    • Quote
      Sub 2
      • Quote
        Sub-Sub1
      • Quote
        Sub-Sub 2
  • Quote
    Item 2
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline shai

  • Newbie
  • *
  • Posts: 5
Re: [list] with indented sub items
« Reply #6 on: December 23, 2009, 01:55:31 AM »
This is list with quote:
  • Quote
    $ bash.sh

This is list with quote:
Code: [Select]
[list]
[li][quote]$ bash.sh[/quote][/li]
[/list]

This is list with code:
Code: [Select]
$ bash.sh
    [/li]

This is list with code:
Code: [Select]
[list]
[li][code]$ bash.sh
[/li]
[/list]
[/code]

What did I do wrong in this post (here is the post code hxxp:pastebin.com/m78f3977c)? [nonactive]
« Last Edit: December 23, 2009, 01:59:57 AM by shai »

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: [list] with indented sub items
« Reply #7 on: December 23, 2009, 11:09:05 AM »
I'm told that quote fits in the list element but code cannot. Has something to do with keeping up with the html standards.
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."