Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

valid sublists?

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  BDSM top list ...  
Author Message
tom5

External


Since: May 18, 2004
Posts: 10



(Msg. 1) Posted: Thu Jun 17, 2004 12:14 am
Post subject: valid sublists?
Archived from groups: alt>html, others (more info?)

Hi
I have the following scenario

<ul>
<li>Mainlist1</li>
<ul>
<li>Sublist 1</li>
<li>Sublist 2</li>
<li>Sublist 3</li>
<li>Sublist 4</li>
</ul>
<li>Mainlist 2</li>
<li>Mainlist 3</li>
</ul>

What do I have to do to make this validate as XHTML? I would be surprised if
you could not have sub lists in some format....
Thanks
T

 >> Stay informed about: valid sublists? 
Back to top
Login to vote
neal413

External


Since: May 04, 2004
Posts: 140



(Msg. 2) Posted: Thu Jun 17, 2004 12:14 am
Post subject: Re: valid sublists? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 16 Jun 2004 21:14:50 +0100, Tom <tom.RemoveThis@digital-haze.com> wrote:

 > Hi
 > I have the following scenario
 >
 > <ul>
 > <li>Mainlist1</li>
 > <ul>
 > <li>Sublist 1</li>
 > <li>Sublist 2</li>
 > <li>Sublist 3</li>
 > <li>Sublist 4</li>
 > </ul>
 > <li>Mainlist 2</li>
 > <li>Mainlist 3</li>
 > </ul>
 >
 > What do I have to do to make this validate as XHTML? I would be
 > surprised if
 > you could not have sub lists in some format....
 > Thanks


Put the nested list inside the list item.

<ul>
<li>Mainlist1
<ul>
<li>Sublist 1</li>
<li>Sublist 2</li>
<li>Sublist 3</li>
<li>Sublist 4</li>
</ul>
</li>
<li>Mainlist 2</li>
<li>Mainlist 3</li>
</ul><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: valid sublists? 
Back to top
Login to vote
spam19

External


Since: May 08, 2004
Posts: 952



(Msg. 3) Posted: Thu Jun 17, 2004 12:14 am
Post subject: Re: valid sublists? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 16 Jun 2004 21:14:50 +0100, Tom <tom.RemoveThis@digital-haze.com> wrote:

 > Hi
 > I have the following scenario
 >
 > <ul>
 > <li>Mainlist1</li>
 > <ul>
 > <li>Sublist 1</li>
 > <li>Sublist 2</li>
 > <li>Sublist 3</li>
 > <li>Sublist 4</li>
 > </ul>
 > <li>Mainlist 2</li>
 > <li>Mainlist 3</li>
 > </ul>
 >
 > What do I have to do to make this validate as XHTML? I would be
 > surprised if
 > you could not have sub lists in some format....
 > Thanks

You can't have a <ul> directly within another <ul>

Instead, make your nested list one of the list items:

<ul>
<li>Mainlist1
<ul>
<li>Sublist 1</li>
<li>Sublist 2</li>
<li>Sublist 3</li>
<li>Sublist 4</li>
</ul>
</li>
<li>Mainlist 2</li>
<li>Mainlist 3</li>
</ul>

Not only is this correct XHTML, but it makes sure the first sublist is
associated with the first Mainlist list item. eg. they are both within
the same <li> tag.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- <a style='text-decoration: underline;' href="http://www.greywyvern.com/webslavent.php?msg=53" target="_blank">http://www.greywyvern.com/webslavent.php?msg=53</a> - Support the Opera
Puffin Mascot Campaign!<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: valid sublists? 
Back to top
Login to vote
news26

External


Since: Jun 16, 2004
Posts: 1



(Msg. 4) Posted: Thu Jun 17, 2004 12:17 am
Post subject: Re: valid sublists? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tom wrote:
 > I have the following scenario
 > <ul>
 > <li>Mainlist1</li>
 > <ul>
 > <li>Sublist 1</li>
 > <li>Sublist 2</li>
 > <li>Sublist 3</li>
 > <li>Sublist 4</li>
 > </ul>
 > <li>Mainlist 2</li>
 > <li>Mainlist 3</li>
 > </ul>
 > What do I have to do to make this validate as XHTML? I would be
 > surprised if you could not have sub lists in some format....

Try:

<ul>
<li>Mainlist1
<ul>
<li>Sublist 1</li>
<li>Sublist 2</li>
<li>Sublist 3</li>
<li>Sublist 4</li>
</ul>
</li>
<li>Mainlist 2</li>
<li>Mainlist 3</li>
</ul>

--
Barry Pearson
<a style='text-decoration: underline;' href="http://www.Barry.Pearson.name/photography/" target="_blank">http://www.Barry.Pearson.name/photography/</a>
<a style='text-decoration: underline;' href="http://www.BirdsAndAnimals.info/" target="_blank">http://www.BirdsAndAnimals.info/</a>
<a style='text-decoration: underline;' href="http://www.ChildSupportAnalysis.co.uk/" target="_blank">http://www.ChildSupportAnalysis.co.uk/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: valid sublists? 
Back to top
Login to vote
who

External


Since: Apr 29, 2004
Posts: 1010



(Msg. 5) Posted: Thu Jun 17, 2004 11:55 am
Post subject: Re: valid sublists? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Tom" <tom.RemoveThis@digital-haze.com> wrote in message
news:caqab7$gjk$1@kermit.esat.net...
 > Hi
 > I have the following scenario
 >
 > <ul>
 > <li>Mainlist1</li>
 > <ul>
 > <li>Sublist 1</li>
 > <li>Sublist 2</li>
 > <li>Sublist 3</li>
 > <li>Sublist 4</li>
 > </ul>
 > <li>Mainlist 2</li>
 > <li>Mainlist 3</li>
 > </ul>
 >
I think the above three posts just about cover all possiblities.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: valid sublists? 
Back to top
Login to vote
tom5

External


Since: May 18, 2004
Posts: 10



(Msg. 6) Posted: Thu Jun 17, 2004 11:55 am
Post subject: Re: valid sublists? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I think the above three posts just about cover all possiblities.

Smile

Thanks for the speedy responses guys
T<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: valid sublists? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]