Style Sheets
  Home arrow Style Sheets arrow Page 3 - Style Sheets for a Useful Links Page
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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


    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

    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...
    - Pulling Web Page Elements with the Blueprint...
    - Pushing Web Page Columns with the Blueprint ...
    - Controlling Column Padding with the Blueprin...
    - Prepending Classes in the Blueprint CSS Fram...
    - Appending Grid Units with the Blueprint CSS ...
    - Changing Grid Units in the Blueprint CSS Fra...
    - The Blueprint CSS Framework
    - Building a Liquid Design with Evened Margins...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT