HighDots Forums  

CSS Bullet List Formatting

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Bullet List Formatting in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Benjamin Dover
 
Posts: n/a

Default CSS Bullet List Formatting - 11-04-2004 , 03:32 PM






In my style sheet I have assigned a small bullet image to replace the
standard dot which appears when creating a bullet list <ul><li>...etc.

CSS looks like this:
li, ul { list-style-image:url(/images/ul-blt.gif); }

I have a section on a page that contains a bullet list within a bullet list
and I would like to assign a separate image to appear for the second
indented list.

The code looks like this:
<ul>
<li>List Item 1
<ul><li>Sub Item 1</li></ul>
</li>
<li>List Item 2</li>
</ul>

Is there a way to put a code into the style sheet that would account for a
bullet list within a bullet list and allow me to assign a separate image to
the bullets for "Sub Item 1" as shown above?

TIA
BenD



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS Bullet List Formatting - 11-04-2004 , 04:03 PM






.oO(Benjamin Dover)

Quote:
Is there a way to put a code into the style sheet that would account for a
bullet list within a bullet list and allow me to assign a separate image to
the bullets for "Sub Item 1" as shown above?
/* list */
ul {
...
}

/* nested list */
ul ul {
...
}

Micha


Reply With Quote
  #3  
Old   
CMBergin
 
Posts: n/a

Default Re: CSS Bullet List Formatting - 11-04-2004 , 04:11 PM



Keep nesting:
ul li ul li {list-style-image:url(/images/second-level-bullet.gif)}
ul li ul li ul lu {list-style-image:url(/images/third-level-bullet.gif)}

"Benjamin Dover" <reply_to_group_only (AT) thankyouRTG (DOT) com> wrote

Quote:
In my style sheet I have assigned a small bullet image to replace the
standard dot which appears when creating a bullet list <ul><li>...etc.

CSS looks like this:
li, ul { list-style-image:url(/images/ul-blt.gif); }

I have a section on a page that contains a bullet list within a bullet
list
and I would like to assign a separate image to appear for the second
indented list.

The code looks like this:
ul
li>List Item 1
ul><li>Sub Item 1</li></ul
/li
li>List Item 2</li
/ul

Is there a way to put a code into the style sheet that would account for a
bullet list within a bullet list and allow me to assign a separate image
to
the bullets for "Sub Item 1" as shown above?

TIA
BenD





Reply With Quote
  #4  
Old   
CMBergin
 
Posts: n/a

Default Re: CSS Bullet List Formatting - 11-04-2004 , 04:12 PM



Sorry for not keeping my reader refreshed....

"CMBergin" <NoHarvestForYou (AT) NoSpam (DOT) org> wrote

Quote:
Keep nesting:
ul li ul li {list-style-image:url(/images/second-level-bullet.gif)}
ul li ul li ul lu {list-style-image:url(/images/third-level-bullet.gif)}

"Benjamin Dover" <reply_to_group_only (AT) thankyouRTG (DOT) com> wrote in message
news:cme3kt$7k4$1 (AT) forums (DOT) macromedia.com...
In my style sheet I have assigned a small bullet image to replace the
standard dot which appears when creating a bullet list <ul><li>...etc.

CSS looks like this:
li, ul { list-style-image:url(/images/ul-blt.gif); }

I have a section on a page that contains a bullet list within a bullet
list
and I would like to assign a separate image to appear for the second
indented list.

The code looks like this:
ul
li>List Item 1
ul><li>Sub Item 1</li></ul
/li
li>List Item 2</li
/ul

Is there a way to put a code into the style sheet that would account for
a
bullet list within a bullet list and allow me to assign a separate image
to
the bullets for "Sub Item 1" as shown above?

TIA
BenD







Reply With Quote
  #5  
Old   
Benjamin Dover
 
Posts: n/a

Default Re: CSS Bullet List Formatting - 11-04-2004 , 04:25 PM



That's perfect ... thanks to all!!!

BenD



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.