3 replies [Last post]
cpf
cpf's picture
User offline. Last seen 2 years 10 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-02-25
Posts: 4
Points: 7

Quest

Hi,

I have a pair of nested, unordered lists like the following:

I want the outer list to be styled without a list item marker {list-style-type: none} but I do want to apply {list-style-type: disk} to the inner list items.

This declaration doesn't work:

.bullets ul li {
list-style-type: none;
}
.bullets ul li ul li a {
list-style-type: disk;
}

What is the proper syntax? Also, any recommended writeups that describe how styles are applied to elements, (hopefully with lots of examples!)

Thanks in advance

Deuce
Deuce's picture
User offline. Last seen 4 weeks 5 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

1) It's "disc" 2) You should

1) It's "disc"
2) You should add it to the second li not the anchor.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

cpf
cpf's picture
User offline. Last seen 2 years 10 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-02-25
Posts: 4
Points: 7

Thanks

It works! Thanks so much. What governs the "disc" color?

Deuce
Deuce's picture
User offline. Last seen 4 weeks 5 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

Adding color: #F00; to the

Adding color: #F00; to the li.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph