473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help with CSS for outline format

I'm trying to get output that looks like this:

1. main point 1
A. subordinate point
B. subordinate point
2. main point 2
A. subordinate point
B. subordinate point

I've put up a first shot at it here:

http://www.clearpointsystems.com

One thing I'm confused about is when to close the <li> tag...

Also, should I sub-class the <ol> or just the <li> ?

Any help would be appreciated...

Thanks in advance.

May 26 '06 #1
4 1502
Deciding to do something for the good of humanity, deko
<de**@nospam.com> declared in
comp.infosystems.www.authoring.stylesheets:
I'm trying to get output that looks like this:

1. main point 1
A. subordinate point
B. subordinate point
2. main point 2
A. subordinate point
B. subordinate point


ol { list-style-type: decimal }
ol ol { list-style-type: upper-alpha }
<ol>
<li>main point 1
<ol>
<li>subordinate point</li>
<li>subordinate point</li>
</ol>
</li>
<li>main point 2
<ol>
<li>subordinate point</li>
<li>subordinate point</li>
</ol>
</li>
</ol>

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
May 26 '06 #2
> ol { list-style-type: decimal }
ol ol { list-style-type: upper-alpha }
<ol>
<li>main point 1
<ol>
<li>subordinate point</li>
<li>subordinate point</li>
</ol>
</li>
<li>main point 2
<ol>
<li>subordinate point</li>
<li>subordinate point</li>
</ol>
</li>
</ol>


Outstanding!

That example was exactly what I needed!

Thanks!
May 26 '06 #3
deko wrote:
I've put up a first shot at it here:

http://www.clearpointsystems.com

That's a 404.
Also, should I sub-class the <ol> or just the <li> ?


"Sub-class"? No comprendi.

--
Jack.
May 26 '06 #4

Mark Parnell wrote:
<ol>
<li>main point 1
<ol>
<li>subordinate point</li>
<li>subordinate point</li>
</ol>
</li>


I'd do somthing like this

<li><span class="foo" >main point 1</span>
<ol>

Although your example is valid HTML, it uses a mixed content model for
<li>. This makes it difficult to apply CSS later, if you wanted to
style the text "main point 1" without affecting the second-level list.

Mixed content models are always a pain. They're bad enough for inline
text, but I'd make an effort to avoid them around anything block-like
(such as lists).

May 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Felix Collins | last post by:
Hi All, does anyone know any cleaver tricks to sort a list of outline numbers. An outline number is a number of the form... 1.2.3 they should be sorted in the following way... 1 1.1 1.2
4
by: Jim | last post by:
Hi, I'm using reStructuredText as a format for some group documentation, and often my co-workers take notes during meetings in Word's outline mode. Does anyone already have a python script that...
13
by: deko | last post by:
I. A. B. II. A. 1) 2) B. C.
0
by: 1001 Webs | last post by:
As I read at: http://webpages.charter.net/edreamleo/front.html Leo is... * A general data management environment. Leo shows user-created relationships among any kind of data: computer...
4
by: mattehz | last post by:
Hey there, I am trying to upload old source files and came across these errors: Warning: Invalid argument supplied for foreach() in /home/mattehz/public_html/acssr/trunk/inc_html.php on line 59...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.