Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Controlling the "depth" of <UL> or <LI> ??

Question posted by: capricious (Guest) on June 27th, 2008 07:16 PM
Is it possible, so that when you do multiple <UL>'s to control how
deep the UL's are marked? For example, it would defaultly look like
this with multiple ULs and LIs:

-- Code :

Main Menu<ul>Fruits<ul><li>Apples</li><li>Oranges</li></ul></ul>

..
-- Returns :

Main Menu
$B!|(B Fruits
$B!{(B Apples
$B!{(B Oranges

..
-- But, what I want:

Main Menu
$B!|(B Fruits
Apples
Oranges

..
I am pretty sure you can do stuff like .whatever div div div { your
css; } - so it will effect only a 3rd level embedded div (I believe
thats the purpose, at least). Is this how this would be done? My
experiments have all failed me. Any advice would be greatly
appreciated.

P.S. I am forced into this due to the way that Joomla! lays out its
menu system. If you know about the Joomla 1.5 menu system, you will
understand exactly what I am trying to do I think :)

Thanks in advance!
capricious's Avatar
capricious
Guest
n/a Posts
June 27th, 2008
07:16 PM
#2

Re: Controlling the "depth" of <UL> or <LI> ??
On May 29, 7:23 pm, capricious <pokers...@beer.comwrote:
Quote:
Is it possible, so that when you do multiple <UL>'s to control how
deep the UL's are marked? For example, it would defaultly look like
this with multiple ULs and LIs:
>
-- Code :
>
Main Menu<ul>Fruits<ul><li>Apples</li><li>Oranges</li></ul></ul>
>
.
-- Returns :
>
Main Menu
$B!|(B Fruits
$B!{(B Apples
$B!{(B Oranges
>
.
-- But, what I want:
>
Main Menu
$B!|(B Fruits
Apples
Oranges
>
.
I am pretty sure you can do stuff like .whatever div div div { your
css; } - so it will effect only a 3rd level embedded div (I believe
thats the purpose, at least). Is this how this would be done? My
experiments have all failed me. Any advice would be greatly
appreciated.
>
P.S. I am forced into this due to the way that Joomla! lays out its
menu system. If you know about the Joomla 1.5 menu system, you will
understand exactly what I am trying to do I think :)
>
Thanks in advance!


Damn, answered my own question. I was trying it with dots for some
stupid reason. It's just:

ul { list-style: disc; }
ul ul { list-style: none; }

Dunno where I got periods from.

dorayme's Avatar
dorayme
Guest
n/a Posts
June 27th, 2008
07:16 PM
#3

Re: Controlling the "depth" of <UL> or <LI> ??
In article
<336a0efb-8eb5-4c4e-acd1-56dfff7ce7ba@x19g2000prg.googlegroups.com>,
capricious <pokerslut@beer.comwrote:
Quote:
Is it possible, so that when you do multiple <UL>'s to control how
deep the UL's are marked? For example, it would defaultly look like
this with multiple ULs and LIs:
>
-- Code :
>
Main Menu<ul>Fruits<ul><li>Apples</li><li>Oranges</li></ul></ul>
>
.
-- Returns :
>
Main Menu
Åú Fruits
Åõ Apples
Åõ Oranges
>
.
-- But, what I want:
>
Main Menu
Åú Fruits
Apples
Oranges
>
.
I am pretty sure you can do stuff like .whatever div div div { your
css; } - so it will effect only a 3rd level embedded div (I believe
thats the purpose, at least). Is this how this would be done? My
experiments have all failed me. Any advice would be greatly
appreciated.



In addition to my last advice (at alt.html), if it is the lack of list
item markers you want at the second level (as appears on my newsreader)
then you do this by classing the second level and telling it "none":

..fruits {list-style-type: disc}

--
dorayme

Jonathan N. Little's Avatar
Jonathan N. Little
Guest
n/a Posts
June 27th, 2008
07:16 PM
#4

Re: Controlling the "depth" of <UL> or <LI> ??
capricious wrote:
Quote:
On May 29, 7:23 pm, capricious <pokers...@beer.comwrote:
Quote:
>Is it possible, so that when you do multiple <UL>'s to control how
>deep the UL's are marked? For example, it would defaultly look like
>this with multiple ULs and LIs:
>>
>-- Code :
>>
>Main Menu<ul>Fruits<ul><li>Apples</li><li>Oranges</li></ul></ul>
>>
>.
>-- Returns :
>>
>Main Menu
> $B!|(B Fruits
> $B!{(B Apples
> $B!{(B Oranges
>>
>.
>-- But, what I want:
>>
>Main Menu
> $B!|(B Fruits
> Apples
> Oranges
>>
>.
>I am pretty sure you can do stuff like .whatever div div div { your
>css; } - so it will effect only a 3rd level embedded div (I believe
>thats the purpose, at least). Is this how this would be done? My
>experiments have all failed me. Any advice would be greatly
>appreciated.
>>
>P.S. I am forced into this due to the way that Joomla! lays out its
>menu system. If you know about the Joomla 1.5 menu system, you will
>understand exactly what I am trying to do I think :)
>>
>Thanks in advance!

>
Damn, answered my own question. I was trying it with dots for some
stupid reason. It's just:
>
ul { list-style: disc; }
ul ul { list-style: none; }
>
Dunno where I got periods from.



multiposted, answered in alt.html, note your markup is invalid.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Lars Eighner's Avatar
Lars Eighner
Guest
n/a Posts
June 27th, 2008
07:16 PM
#5

Re: Controlling the "depth" of <UL> or <LI> ??
In our last episode,
<doraymeRidThis-D6BD3B.19021630052008@news-vip.optusnet.com.au>, the lovely
and talented dorayme broadcast on comp.infosystems.www.authoring.html:
Quote:
In article <slrng3vf0t.icv.usenet@debranded.larseighner.com>,
Lars Eighner <usenet@larseighner.comwrote:

Quote:
Quote:
>This is why discreet crossposting (dear OP) is better than multiposting,
>although picking one right group and sticking with it is best of all.

Quote:
OK! Well put.

Quote:
(Why not read alt.html? It is a great group where everyone gets on like
a house on fire. <g>)


1. I do not care to hear of the wonderful features of frames.

2. Multiposting is even worse for people subscribed to several of the
affected groups because newsreaders will not kill multiposts once one copy
is read and possibly followed up.

3. Did I mention, picking one right group and sticking with it is best of
all.

--
Lars Eighner <http://larseighner.com/Join Bytes!
Countdown: 235 days to go.

dorayme's Avatar
dorayme
Guest
n/a Posts
June 27th, 2008
07:16 PM
#6

Re: Controlling the "depth" of <UL> or <LI> ??
In article <slrng3vla7.j9r.usenet@debranded.larseighner.com>,
Lars Eighner <usenet@larseighner.comwrote:
Quote:
In our last episode,
<doraymeRidThis-D6BD3B.19021630052008@news-vip.optusnet.com.au>, the lovely
and talented dorayme broadcast on comp.infosystems.www.authoring.html:
>
Quote:
In article <slrng3vf0t.icv.usenet@debranded.larseighner.com>,
Lars Eighner <usenet@larseighner.comwrote:

>
Quote:
Quote:
This is why discreet crossposting (dear OP) is better than multiposting,
although picking one right group and sticking with it is best of all.

>
Quote:
OK! Well put.

>
Quote:
(Why not read alt.html? It is a great group where everyone gets on like
a house on fire. <g>)

>
1. I do not care to hear of the wonderful features of frames.
>
2. Multiposting is even worse for people subscribed to several of the
affected groups because newsreaders will not kill multiposts once one copy
is read and possibly followed up.
>


Not sure what this is relevant to? Nearly everyone at alt.html (except
the oddest of beings, hates frames). And no one likes multiposting,
including me.
Quote:
3. Did I mention, picking one right group and sticking with it is best of
all.


No, you never mentioned this.

Lars, stop resisting. I invite you to a party there, so come on over...

--
dorayme

Jonathan N. Little's Avatar
Jonathan N. Little
Guest
n/a Posts
June 27th, 2008
07:16 PM
#7

Re: Controlling the "depth" of <UL> or <LI> ??
dorayme wrote:
Quote:
Lars, stop resisting. I invite you to a party there, so come on over...
>

<James Earl Jones>...to the Darkside...</James Earl Jones>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 
Not the answer you were looking for? Post your question . . .
189,798 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors