Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / May 2006



Tip: Looking for answers? Try searching our database.

Help with CSS for outline format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
deko - 26 May 2006 05:44 GMT
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.
Mark Parnell - 26 May 2006 05:56 GMT
Deciding to do something for the good of humanity, deko
<deko@nospam.com> declared in
comp.infosystems.www.authoring.stylesheets:

> I'm trying to get output that looks like this:
>
[quoted text clipped - 4 lines]
>    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>

Signature

Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html

deko - 26 May 2006 06:17 GMT
> ol { list-style-type: decimal }
> ol ol { list-style-type: upper-alpha }
[quoted text clipped - 13 lines]
>  </li>
> </ol>

Outstanding!

That example was exactly what I needed!

Thanks!
dingbat@codesmiths.com - 26 May 2006 11:17 GMT
> <ol>
>   <li>main point 1
[quoted text clipped - 3 lines]
>     </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).
Jack - 26 May 2006 09:17 GMT
> 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.

Signature

Jack.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.