PC Review


Reply
Thread Tools Rate Thread

CSS controlled multi-level list

 
 
=?Utf-8?B?QVY=?=
Guest
Posts: n/a
 
      3rd Aug 2005
Hi,

I have an external stylesheet which has multiple DIVs defined for different
sections of my site. Each div has ul and li defined with image bullets. I
would like to make a simple, 2-level list (not dynamic) that has a second
level indented below the first that uses a different image bullet.

Is there a way to define more than one li for a div with different margins
and bullet styles? And if so, how do I call it within the HTML? I don't
know how to code it. Here's an abbreviated version of 2 div in the
stylesheet:

div.navpro ul {
margin-top: 0;
margin-bottom: 0;
margin-left: 30px;
padding: 0;
}
div.navpro li {
margin: 0;
padding: 1px;
list-style-image:url('../images/arrow1_blue);
}

div.navcon ul {
margin-top: 0;
margin-bottom: 0;
margin-left: 30px;
padding: 0;
}
div.navpro li {
margin: 0;
padding: 1px;
list-style-image:url('../images/arrow1_red);
}

Each of these DIVs has additional formatting that I did not include here.
The goal is to have a second level li for each div with different pading and
list-style-images.

Thanks for your help!
 
Reply With Quote
 
 
 
 
Jens Peter Karlsen[FP-MVP]
Guest
Posts: n/a
 
      3rd Aug 2005
You will need to create a class for each of these and apply it to the
second level li.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: AV [private.php?do=newpm&u=]
Posted At: 3. august 2005 01:24
Posted To: microsoft.public.frontpage.client
Conversation: CSS controlled multi-level list
Subject: CSS controlled multi-level list


Hi,

I have an external stylesheet which has multiple DIVs defined for
different sections of my site. Each div has ul and li defined with
image bullets. I would like to make a simple, 2-level list (not
dynamic) that has a second level indented below the first that uses a
different image bullet.

Is there a way to define more than one li for a div with different
margins and bullet styles? And if so, how do I call it within the HTML?
I don't know how to code it. Here's an abbreviated version of 2 div in
the
stylesheet:

div.navpro ul {
margin-top: 0;
margin-bottom: 0;
margin-left: 30px;
padding: 0;
}
div.navpro li {
margin: 0;
padding: 1px;
list-style-image:url('../images/arrow1_blue);
}

div.navcon ul {
margin-top: 0;
margin-bottom: 0;
margin-left: 30px;
padding: 0;
}
div.navpro li {
margin: 0;
padding: 1px;
list-style-image:url('../images/arrow1_red);
}

Each of these DIVs has additional formatting that I did not include
here.
The goal is to have a second level li for each div with different pading
and list-style-images.

Thanks for your help!

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.8/61 - Release Date: 01-08-2005


 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      3rd Aug 2005
Add the second level list styles as li li

div.navpro li { margin: 0; padding: 1px;
list-style-image:url('../images/arrow1_blue); }

div.navpro li li { margin: 0; padding: 1px;
list-style-image:url('../images/arrow2_red); }


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"AV" <(E-Mail Removed)> wrote in message news:1D72ED6E-D19B-4F93-8655-(E-Mail Removed)...
| Hi,
|
| I have an external stylesheet which has multiple DIVs defined for different
| sections of my site. Each div has ul and li defined with image bullets. I
| would like to make a simple, 2-level list (not dynamic) that has a second
| level indented below the first that uses a different image bullet.
|
| Is there a way to define more than one li for a div with different margins
| and bullet styles? And if so, how do I call it within the HTML? I don't
| know how to code it. Here's an abbreviated version of 2 div in the
| stylesheet:
|
| div.navpro ul {
| margin-top: 0;
| margin-bottom: 0;
| margin-left: 30px;
| padding: 0;
| }
| div.navpro li {
| margin: 0;
| padding: 1px;
| list-style-image:url('../images/arrow1_blue);
| }
|
| div.navcon ul {
| margin-top: 0;
| margin-bottom: 0;
| margin-left: 30px;
| padding: 0;
| }
| div.navpro li {
| margin: 0;
| padding: 1px;
| list-style-image:url('../images/arrow1_red);
| }
|
| Each of these DIVs has additional formatting that I did not include here.
| The goal is to have a second level li for each div with different pading and
| list-style-images.
|
| Thanks for your help!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-level list Mikey :) Microsoft Word Document Management 2 21st Jul 2009 04:14 PM
Multi-Level List Drops Out of List Mode Amy E. Baggott Microsoft Word Document Management 1 1st Mar 2009 02:34 PM
How to create multi-level collapsible sortable to-do list/task list ajkessel Microsoft Excel Discussion 7 30th Jun 2008 06:04 PM
Multi-level pick-list Dan Microsoft Excel Discussion 1 13th Jul 2006 12:14 AM
How to create a Multi Level List =?Utf-8?B?UGVycmEgVGhvbXNzb24=?= Microsoft Access Database Table Design 4 16th Jan 2005 05:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.