Two columns Three columns Mixed cols and rows Gallery Archives Clean & Clear Dark or Black High Contrast/ Impact Blog Designs New Corporate/ Professional Unconventional Designs Liquid layouts Web Design Firms Our Favorites What's Popular Last 20 submissions
Horizontal Menus Vertical Menus Multiple/ Nested Levels

CSS Examples Image Marker Lists

Date: 09/26/2004 Image Marker Lists

Author: CSS Drive

CSS makes it possible to use images for a list's markers. And through descendant selectors, different images can be shown depending on the level of the list item in question, as shown below:

  • News
  • Sports
  • Webmaster
    • CSS Drive
    • PHP.net

The HTML:

<ul>
<li>News</li>
<li>Sports</li>
<li>Webmaster<ul>
    <li>CSS Drive</li>
    <li>PHP.net</li>
</ul>
</li>
</ul>

The CSS:

ul li{
list-style-type: square;
list-style-image:url(fold.gif);
padding-left: 3px;
}

ul li ul li{
list-style-image:url(list.gif);
}

Comments (3)

Interesting

#1: BWiz on 04/08 at 01:45 PM

The spacing is off in IE6 and IE7

#3: truegraphix on 10/12 at 08:43 AM

Post a Comment: Guest (Login or Register)

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below:


CSS Forums

CSS Forums: latest threads Last Post Info
Cant design (1) 05/16/2008 12:28 pm
By: tarik
How to show an entire pdf in one div (2) 05/14/2008 11:07 am
By: Grundic
Starting A Web Design Business - How Do I Attract Customers? (10) 05/13/2008 02:37 pm
By: april
Download.. Pacific Wings multicolor menu (1) 05/13/2008 03:05 am
By: sebreh
Check out this website I am working on CRITIQUE. (5) 05/13/2008 01:20 am
By: abran