Jump to content

numbered list with sub as a. b. etc

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

numbered list with sub as a. b. etc Rate Topic: -----

#1 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 21 February 2007 - 04:25 PM

How can I do this? Something like:

1. Blah
	a. blah blah
	b. blah blah
2. Blah
	a. blah
	b. blah


and so on.

I did order list <ol> and list item <li>, that's for the numbers, but what about the letters?

and..

A. blah blah
	a. blah
	b. blah
B. blah blah
	a. blah

This post has been edited by ultra99: 21 February 2007 - 04:30 PM

0

#2 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 21 February 2007 - 04:29 PM

By using the "type" attribute, like so:
<ol type="1">
	<li></li>
	<li>
		<ol type="a">
			<li></li>
			<li></li>
		</ol>
	</li>
</ol>

Here are all of the actual attribute values you can use: http://www.w3.org/TR...tml#type-values
0

#3 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 21 February 2007 - 04:45 PM

I did that, but shows messed up in DW.

<ol type="1">
<li>Essential oil (0.7%-4%)</li>
<li>
	<ol type="a">
		<li>Menthol</li>
		<li>Menthone</li>
		<li>Menthyl acetate</li>
		<li>Menthofuran</li>
		<li>Menthyl isovalerianate</li>
		<li>Cineole</li>
	</ol>
</li>
<li>Tannins (6-12%)</li>
<li>Flavones</li>
<li>Others (compounds that have not been discovered yet)</li>
</ol>

This post has been edited by ultra99: 21 February 2007 - 04:45 PM

0

#4 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 21 February 2007 - 04:52 PM

I would suggest never using Dreamweaver's design view as your test-bed. Always load it in a browser and have a look.
0

#5 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 21 February 2007 - 05:15 PM

Nah. Something is wrong. See here.
0

#6 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 21 February 2007 - 05:19 PM

Hmm, it really looks fine to me, directly on your site. I'm using Firefox on XP... what is it supposed to look like, in your opinion? Don't forget that something might need to be placed in the <li> that also contains the sub-ordered list, like this:

<ol type="1">
<li>Essential oil (0.7%-4%)</li>
<li>****Should something be here?****
	<ol type="a">
		<li>Menthol</li>
		<li>Menthone</li>
		<li>Menthyl acetate</li>
		<li>Menthofuran</li>
		<li>Menthyl isovalerianate</li>
		<li>Cineole</li>
	</ol>
</li>
<li>Tannins (6-12%)</li>
<li>Flavones</li>
<li>Others (compounds that have not been discovered yet)</li>
</ol>

0

#7 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 21 February 2007 - 05:22 PM

These are not right. FF and IE7 in Vista.

[attachment=191:Untitled.jpg]

This post has been edited by ultra99: 22 February 2007 - 12:57 AM

0

#8 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 21 February 2007 - 05:28 PM

View Postherkalees, on Feb 22 2007, 12:19 AM, said:

Hmm, it really looks fine to me, directly on your site. I'm using Firefox on XP... what is it supposed to look like, in your opinion? Don't forget that something might need to be placed in the <li> that also contains the sub-ordered list, like this:


Yeah, that seems the problem. I was going to ask you what where they for anyway.
0

#9 User is offline   ShakingSpirit 

  • Pedantic Whinger
  • Group: Members
  • Posts: 237
  • Joined: 01-August 06
  • Gender:Male
  • Location:Southampton, UK

Posted 21 February 2007 - 09:45 PM

Just kill the extra <li>s, you don't need them.

<ol type="1">
<li>Essential oil (0.7%-4%)</li>
<li>  <-- Remove this
	<ol type="a">
		<li>Menthol</li>
		<li>Menthone</li>
		<li>Menthyl acetate</li>
		<li>Menthofuran</li>
		<li>Menthyl isovalerianate</li>
		<li>Cineole</li>
	</ol>
</li>  <-- Remove this
<li>Tannins (6-12%)</li>
<li>Flavones</li>
<li>Others (compounds that have not been discovered yet)</li>
</ol>

QUOTE(MSN)
Benbramz says: i had orgasmic thoughts at the excitement of that
0

#10 User is offline   ultra99 

  • W.R. Corporal
  • Group: Members
  • Posts: 95
  • Joined: 02-February 07

Posted 22 February 2007 - 12:16 AM

Under "Uses", they are all A's, instead of A, B, C, etc. How do I fix that?
0

#11 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 22 February 2007 - 12:43 AM

That is merely because each one is a new ordered list. Each ordered list is to begin with an "A", and you've got them as separate lists, so they rightfully begin with an "A".

To make them "A", "B", "C", etc., you'll have to combine the separate ordered lists into one, like this:
<ol type="A">
<li>Crude drug</li>
	<ol type="i">
		<li>Irritable colon, irritable bowel syndrome (IBS),
		gastritis, and entercolitis</li>
		<li>Flavoring agent, mild antimicrobial, and mild antispasmodic</li>
	</ol>
</ol>
<ol type="A">
<li>Menthol
	<ol type="i">
		<li>Mouth wash and gargles; relief of symptoms of gastric hyperacidity</li>
		<li>Preparation of menthol, menthone, and some terpenes is
		used for the treatment of renal stones</li>
		<li>Preparation of menthol 38%, menthone 60%, and other compounds
		is used for the treatment of gall stones</li>
		<li>Choleretic effect</li>
		<li>Decreases the symptoms of rheumatic pain</li>
		<li>Preparation of menthol and limonene reduces the progress of cancer</li>
	</ol>
</li>
<li>Volatile oil of peppermint
	<ol type="i">
		<li>Flavoring agent</li>
		<li>Carminative</li>
		<li>Mild antimicrobial, antispasmodic</li>
		<li>In toothpastes and powders</li>
		<li>In cigarettes to mask unpleasant odor</li>
	</ol>
</li>
<li>Flavones
	<ol type="i">
		<li>Antimicrobial, anti-diarrheal, and antispasmodic</li>
	</ol>
</il>
<li>Tannins
	<ol type="i">
		<li>Astringent, CNS stimulant</li>
	</ol>
</li>
</ol>


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users