SunQuest
 
       Style Sheets
  Home arrow Style Sheets arrow Page 3 - Style Sheets for a Useful Links Page
IBM developerWorks
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
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? 
STYLE SHEETS

Style Sheets for a Useful Links Page
By: Stephen Davies
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 4
    2007-10-24

    Table of Contents:
  • Style Sheets for a Useful Links Page
  • Style Sheet 1 - Unordered List type
  • Style Sheet 2 - Ordered List type
  • Tricks with Lists

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Style Sheets for a Useful Links Page - Style Sheet 2 - Ordered List type


    (Page 3 of 4 )

    This works in a sequential manner either using letters or numbers. From the above examples, the usage would be:

    <OL>

      <LI>Good Guys

      <LI>Bad Guys

      <LI>Nobody cares

    </OL>

    This simply counts from 1 upwards so the output is:

    1. Good Guys

    2. Bad Guys

    3. Nobody cares

    For Roman numerals simply change the first line to:

    <OL type="I">

    We haven't exhausted our options yet; it can be customized further. Using the <LI> tag attributes, this can be done in a few extra ways. First, we shall add styles to the <LI> tag.

    <HTML>

      <HEAD>

       <TITLE>Example of Roman Numerals</TITLE>

       <STYLE type="text/css">

    LI:before {

      display: marker;

      content: counter(mycounter, lower-roman) ".";

      counter-increment: mycounter;

    }

        </STYLE>

      </HEAD>

    <BODY>

      <OL>

       <LI> item 1,

       <LI> item 2.

       <LI> item 3.

      </OL>

    </BODY>

    </HTML>

    This will produce the result below.

    (1) item 1.

    (2) item 2

    (3) item 3

     

    Ordered lists can also be set to start from a certain number. Here, we shall start the list from the number 10:

    <ol type="1" start="10">
     

      <li>Item 10
     

      <li>Item 11
     

      <li>Item 12
     

    </ol>

    It is also okay to start from any letter, like the letter X for example:

    <ol type="a" start="24">
     

      <li>The 24th letter
     

      <li>The 25th letter
     

      <li>The 26th letter
     

    </ol>

    Here is another example using a mixture of list style types and positions.

    ol.links {

      list-style-type: decimal;

      list-style-position: outside;

    }

    ol.links ol {

      list-style-type: lower-alpha;

      ol.links li { font-style: italic; }

      ol.links ol { font-style: normal; }

    Place all that in the <STYLE> tags as usual, then add the <OL> lines to your code:

    <ol class="links">

      <li>People like web pages that are consistent</li>

      <li>People like two other aspects of a useful links page

    <ol>

      <li>The Links are relevant to the content on the site</li>

      <li>The Links are not dead links</li>

    </ol></li>

    </ol>

    More Style Sheets Articles
    More By Stephen Davies


     

    STYLE SHEETS ARTICLES

    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border
    - CSS: Text, Fonts, and Tables
    - CSS: Working with Text
    - CSS: Backgrounds
    - CSS for the Newbie







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway