Style-Sheets
  Home arrow Style-Sheets arrow Page 6 - Understanding Style Sheets (part 2)
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
STYLE-SHEETS

Understanding Style Sheets (part 2)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 25
    2000-10-04


    Table of Contents:
  • Understanding Style Sheets (part 2)
  • Bringing Out The Decorations
  • Gimme My Space!
  • Reclining Every Which Way
  • Above The Watermark
  • Going Shopping
  • The View From The Top
  • The Z-Factor

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Understanding Style Sheets (part 2) - Going Shopping
    ( Page 6 of 8 )

    If you're the kind of person who likes lists, CSS has something for you too - two properties which let you alter the appearance of the list item marker. First, there's the "list-style-type" property, which accepts the values "disc", "circle", "square", "decimal", "lower-roman", "upper-roman", "lower-alpha", "upper-alpha" or "none". Take a look:
    <HTML>
    <HEAD>
    <STYLE TYPE="text/css">
    LI {list-style-type: square}
    </STYLE>
    </HEAD>
    
    <BODY>
    
    <OL>
    <LI>One 
    tube toothpaste
    <LI>One can catfood
    <LI>One blue cheese
    <LI>One white 
    goat
    <LI>Two dozen bat wings
    </OL>
    
    </BODY>
    </HTML>
    
    You can also use a custom image instead of the default bullets with the "list-style-image" property - like this:
    <HTML>
    <HEAD>
    <STYLE TYPE="text/css">
    LI {list-style-image: url("http://www.mysite.com/bullet.gif")}
    </STYLE>
    </HEAD>
    
    <BODY>
    
    <OL>
    <LI>One 
    tube toothpaste
    <LI>One can catfood
    <LI>One blue cheese
    <LI>One white 
    goat
    <LI>Two dozen bat wings
    </OL>
    
    </BODY>
    </HTML>
    
    Note that Netscape Navigator does not yet support these properties.

     
     
    >>> More Style-Sheets Articles          >>> More By icarus, (c) Melonfire
     

       

    STYLE-SHEETS ARTICLES

    - What is CSS?
    - The Power of CSS
    - Understanding Style Sheets (part 2)
    - Understanding Style Sheets (Part 1)





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek