By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,018 Members | 1,204 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,018 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

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!
Jun 27 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On May 29, 7:23 pm, capricious <pokers...@beer.comwrote:
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.

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.
Jun 27 '08 #2

P: n/a
In article
<33**********************************@x19g2000prg. googlegroups.com>,
capricious <po*******@beer.comwrote:
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
Jun 27 '08 #3

P: n/a
capricious wrote:
On May 29, 7:23 pm, capricious <pokers...@beer.comwrote:
>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.

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
Jun 27 '08 #4

P: n/a
In our last episode,
<do**********************************@news-vip.optusnet.com.au>, the lovely
and talented dorayme broadcast on comp.infosystems.www.authoring.html:
In article <sl*******************@debranded.larseighner.com >,
Lars Eighner <us****@larseighner.comwrote:
>This is why discreet crossposting (dear OP) is better than multiposting,
although picking one right group and sticking with it is best of all.
OK! Well put.
(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/us****@larseighner.com
Countdown: 235 days to go.
Jun 27 '08 #5

P: n/a
In article <sl*******************@debranded.larseighner.com >,
Lars Eighner <us****@larseighner.comwrote:
In our last episode,
<do**********************************@news-vip.optusnet.com.au>, the lovely
and talented dorayme broadcast on comp.infosystems.www.authoring.html:
In article <sl*******************@debranded.larseighner.com >,
Lars Eighner <us****@larseighner.comwrote:
This is why discreet crossposting (dear OP) is better than multiposting,
although picking one right group and sticking with it is best of all.
OK! Well put.
(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.
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
Jun 27 '08 #6

P: n/a
dorayme wrote:
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
Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.