Sample Page for the Oxygen Directory Tree Icons

Welcome to the Oxygen Directory Tree Icons Project: a distribution of 221 icons in PNG image format. Each icon comes in five sizes (for square icons: 20×20, 26×26, 36×36, 52×52 and 68×68 pixels); they can be used by web authors to create “directory tree listings”, as shown in the examples in this document.

Although you can use any directory tree icon in your web pages (by using the standard HTML <img> element), the icons look best when used for directory tree listings in a table. You may wish to use the Oxygen File-type Icons (particularly of size 16×16 and 22×22) for icons within ordinary text.

There are essentially two ways to use the directory tree icons as part of a table:

  1. (Deprecated) You can use HTML Transitional markup such as the following (this very much depends on browsers’ “quirks mode” to be displayed correctly):

    <table border="0" cellspacing="0" cellpadding="0" rules="none">
      <tr><td nowrap>
        <a href="root-link"
          ><img src="world.png alt="[Root]" width="NN" height="NN"
          border="0" align="top"></a
          >&nbsp;<a href="root-link">Root link</a>
      </td></tr>
    
      <tr><td nowrap>
        <img src="tree-Tn.png" alt="" width="NN" height="NN" align="top"
          ><a href="level-1-link"><img src="file-url.png" alt="[URL]"
          width="NN" height="NN" border="0" align="top"></a
          >&nbsp;<a href="level-1-link">Level 1 Link</a>
      </td></tr>
    
      ...
    </table>
    

    The essential points to note are:

    Please beware of adding spaces where none should exist, such as between tags! (Some browsers are picky about such details and will happily misalign your images).

  2. (Preferred) You can use XHTML Strict markup with a suitable CSS stylesheet:

    <table class="dirtreeNN">
      <tr><td>
        <a href="root-link"
          ><img src="world.png alt="[Root]" width="NN" height="NN"
          class="dirtreeNN" /></a
          >&nbsp;<a href="root-link">Root link</a>
      </td></tr>
    
      <tr><td>
        <img src="tree-Tn.png" alt="" width="NN" height="NN" class="dirtreeNN"
          /><a href="level-1-link"><img src="file-url.png" alt="[URL]"
          width="NN" height="NN" class="dirtreeNN" /></a
          >&nbsp;<a href="level-1-link">Level 1 Link</a>
      </td></tr>
    
      ...
    </table>
    

    At a minimum, the CSS definition should include, for each icon of size NN×NN:

    img {
      vertical-align: baseline;
      margin: 0;
      padding: 0;
      border: none;
    }
    table.dirtreeNN {
      border-collapse: collapse;
      border-spacing: 0;
      margin: 0;
      padding: 0;
      border: none;
    }
    table.dirtreeNN td {
      height: NNpx;
      font-size: SIZE;     /* Dependant on font-family, line-height and NN */
      padding: 0;
      border: none;
      white-space: nowrap;
    }
    table.dirtreeNN td.s {
      height: short-NNpx;
      font-size: 1px;
    }
    table.dirtreeNN img.dirtreeNN {
      float: left;         /* Prevent unwanted gaps */
    }
    

    The variable short-NN is the height of the short-height icons: 5 for 20×20 pixel icons, 7 for 26×26 pixel icons, 9 for 36×36 pixel icons, 13 for 52×52 pixel icons or 17 for 68×68 pixel icons.

    Finding the correct value of SIZE is a matter of trial and error as it depends on the font-family and line-height selected. Try values of 14px, 16px, 26px, 40px and 48px as starting points for 20×20, 26×26, 36×36, 52×52 and 68×68 pixel icons respectively.

    Please note that the directory tree icons are floated left in the dirtreeNN table. This is to prevent unwanted gaps from appearing between rows when rendered in standards-compliant browsers.

    If you wish to use smaller fonts for SIZE, you may wish to use the following CSS definition (the differences are highlighted in bold):

    img {
      vertical-align: baseline;
      margin: 0;
      padding: 0;
      border: none;
    }
    table.dirtreeNN {
      border-collapse: collapse;
      border-spacing: 0;
      margin: 0;
      padding: 0;
      border: none;
    }
    table.dirtreeNN td {
      height: NNpx;
      font-size: SIZE;     /* May be something like “100%” */
      vertical-align: middle;
      padding: 0;
      border: none;
      white-space: nowrap;
    }
    table.dirtreeNN td.s {
      height: short-NNpx;
      font-size: 1px;
    }
    table.dirtreeNN td.s img {
      float: left;
    }
    table.dirtreeNN img.dirtreeNN {
      vertical-align: middle;
    }
    

    The alternative to displaying everything in a single table data element, <td>, is to use multiple table data elements, one per image, with the images declared display: block and any text occupying the remaining column(s). This may be more trouble than it is worth, particularly since some (optional) icons do not have the same width.

    You should consult the source code of this sample document to look at the markup being used for the examples; you will need to search for id="examples" to do so.

These icons were derived from the Oxygen File-type Icons Project from The ZAP Group; those, in turn, were derived from the Oxygen icons available in KDE 4.0 and later. They are distributed under the terms of the GNU Lesser General Public License, version 3 or later. Each icon has been hand-optimised for use on web pages.

File Types

The following icons may be used to represent file types (although you would normally use the equivalent 16×16 pixel Oxygen File-type Icons to do so in ordinary text):

[ADR] file-addressbook.png: Address book
[TAR] file-archive.png: Archive or package
[ZIP] file-archive-compressed.png: Compressed archive
[DEB] file-archive-deb.png: Debian package archive
[JAR] file-archive-jar.png: Java archive
[RPM] file-archive-rpm.png: RPM package archive
[TGZ] file-archive-tgz.png: Gzipped-TAR archive
[WAV] file-audio.png: Full-quality (raw) audio file
[MID] file-audio-midi.png: MIDI audio file
[OGG] file-audio-sampled.png: Sampled (compressed) audio file
[SPX] file-audio-voice.png: Voice-quality compressed audio file
[BIN] file-binary.png: Binary file
[BLE] file-blender.png: Blender document
[ERR] file-broken.png: Broken or incomplete file
[DGN] file-cad-design.png: Computer Aided Design (CAD) design
[DWG] file-cad-drawing.png: Computer Aided Design (CAD) drawing
[CAL] file-calendar.png: Calendar
[CDA] file-cdaudio.png: Compact Disc audio file
[ISO] file-cdimage.png: CD-ROM or other optical media image
[CHM] file-chm.png: Compiled HTML Help file
[GZ] file-compressed.png: Compressed file
[VCF] file-contact.png: Contact resource
[CSS] file-css.png: Cascading style sheet (CSS) file
[CSV] file-csv.png: Comma-separated values (CSV) file
[CUE] file-cue.png: CD-ROM mastering cue file
[UI] file-designer.png: Designer document
[PEM] file-digital-certificate.png: Digital certificate
[ENC] file-digital-encrypted.png: Encrypted file
[GPG] file-digital-keys.png: Digital encryption/decryption keys
[PGP] file-digital-pgp.png: PGP encrypted file
[ASC] file-digital-signature.png: Digital signature
[DNG] file-dneg.png: Digital negative or raw image
[DOC] file-document.png: Generic document
[DNL] file-download.png: Download list
[DTD] file-dtd.png: Document Type Definition (DTD) file
[EPB] file-ebook.png: Electronic book
[ELC] file-electronics.png: Electronics design file
[ELP] file-electronics-part.png: Electronics component (part) file
[NUL] file-empty.png: Empty file
[ETX] file-enriched.png: Enriched text file
[EPS] file-eps.png: Encapsulated PostScript file
[EXE] file-exec.png: Executable application
[COM] file-exec-dos.png: MS-DOS executable application
[CLA] file-exec-java.png: Java application
[JVA] file-exec-java-applet.png: Java applet
[BAT] file-exec-script.png: Executable script
[KVT] file-flashcards.png: Open KVTML flashcards
[PCF] file-font-bitmap.png: Bitmap font
[OTF] file-font-otf.png: OpenType scalable font
[TTF] file-font-ttf.png: TrueType scalable font
[PFB] file-font-type1.png: Type 1 PostScript font
[ANY] file-generic.png: Generic file
[KML] file-googleearth.png: Google Earth KML file
[HTM] file-html.png: HTML document
[ICC] file-iccprofile.png: ICC colour profile
[AI] file-illustrator.png: Adobe Illustrator document
[PNG] file-image.png: Graphics image
[INF] file-info.png: Texinfo or Info document
[LDP] file-ldap.png: LDAP directory data file
[LY] file-lilypond.png: LilyPond document
[LOC] file-location.png: Latitude/longitude location on Earth
[LYX] file-lyx.png: LyX document
[MAN] file-man.png: Manual page
[MML] file-mathml.png: MathML document
[MBX] file-message.png: E-mail message
[MBX] file-message-partial.png: Partial e-mail message
[ERR] file-missing.png: Missing file
[MDB] file-ms-access.png: Microsoft Access database document
[XLS] file-ms-excel.png: Microsoft Excel document
[PPT] file-ms-powerpoint.png: Microsoft Powerpoint document
[DOC] file-ms-word.png: Microsoft Word document
[DOT] file-ms-word-template.png: Microsoft Word template
[WRI] file-ms-write.png: Microsoft Write document
[MLT] file-multiple.png: Multiple files
[NEW] file-news.png: News file
[NZB] file-news-index.png: NNTP News index (NZB) file
[ODC] file-od-chart.png: OpenDocument chart document
[ODB] file-od-database.png: OpenDocument database document
[ODF] file-od-formula.png: OpenDocument formula document
[OTF] file-od-formula-template.png: OpenDocument formula template
[ODG] file-od-graphics.png: OpenDocument graphics document
[ODI] file-od-image.png: OpenDocument image document
[OTI] file-od-image-template.png: OpenDocument image template
[ODP] file-od-presentation.png: OpenDocument presentation document
[OTP] file-od-presentation-template.png: OpenDocument presentation template
[ODS] file-od-spreadsheet.png: OpenDocument spreadsheet document
[OTS] file-od-spreadsheet-template.png: OpenDocument spreadsheet template
[ODT] file-od-text.png: OpenDocument text document
[OTT] file-od-text-template.png: OpenDocument text template
[DIF] file-patch.png: Patch or diff file
[PDF] file-pdf.png: Portable Document Format file
[PLG] file-plugin.png: Plugin
[POD] file-podcast.png: Podcast
[PS] file-postscript.png: PostScript document
[PSZ] file-postscript-compressed.png: Compressed PostScript document
[PRJ] file-project.png: Project management document
[RDF] file-rdf.png: Resource Description Framework file
[BAK] file-recycle.png: Backup or recycled file
[RSS] file-rss.png: Really Simple Syndication file
[RTF] file-rtf.png: Rich Text Format (RTF) document
[SCB] file-scribus.png: Scribus document
[SGM] file-sgml.png: SGML document
[ADA] file-source-ada.png: Ada source code
[AWK] file-source-awk.png: AWK source code
[C] file-source-c.png: C source code
[H] file-source-c-hdr.png: C header source code
[CMK] file-source-cmake.png: CMake source file
[CPP] file-source-cpp.png: C++ source code
[HPP] file-source-cpp-hdr.png: C++ header source code
[CS] file-source-csharp.png: C# source code
[BAT] file-source-exec.png: Source code for executable scripts
[HS] file-source-haskell.png: Haskell source code
[JAV] file-source-java.png: Java source code
[JS] file-source-javascript.png: Javascript source code
[MAK] file-source-make.png: Makefile source file
[PAS] file-source-pascal.png: Pascal or Delphi source code
[PL] file-source-perl.png: Perl source code
[PHP] file-source-php.png: PHP source code
[PLS] file-source-plasma.png: KDE Plasma source code
[PO] file-source-po.png: Internationalisation (PO) source file
[PY] file-source-python.png: Python source code
[QML] file-source-qml.png: QML source code
[SPC] file-source-rpmspec.png: RPM specification source file
[RB] file-source-ruby.png: Ruby source code
[BAT] file-source-script.png: Source code for scripts
[SH] file-source-shell.png: Shell script source code
[SQL] file-source-sql.png: SQL source code
[TCL] file-source-tcl.png: TCL source code
[SRT] file-subrip.png: Subrip file
[SRT] file-subrip-titles.png: Subrip titles
[SXW] file-sxw.png: Staroffice Writer document
[TEX] file-tex.png: TeX document
[TXT] file-text.png: Plain text file
[TXT] file-text-authors.png: Authors text file
[TXT] file-text-changelog.png: Changelog text file
[TXT] file-text-copying.png: Copying text file
[TXT] file-text-generic.png: Generic text file
[HEX] file-text-hex.png: Hexadecimal text file
[INS] file-text-install.png: Install text file
[LOG] file-text-log.png: Log text file
[TXT] file-text-readme.png: Readme text file
[TOR] file-torrent.png: Torrent metadata
[TR] file-troff.png: TROFF document
[UNK] file-unknown.png: Unknown file
[URL] file-url.png: URL specification
[ISC] file-vcalendar.png: VCalendar resource
[VCF] file-vcard.png: VCard resource
[SVG] file-vector.png: Vector graphics
[SVG] file-vector-compressed.png: Compressed vector graphics
[VID] file-video.png: Video
[WPD] file-wordperfect.png: WordPerfect document
[WEB] file-world.png: Web-centric document
[HTM] file-xhtml.png: XHTML document
[XML] file-xml.png: XML document
[XML] file-xml-app.png: XML application
[XSL] file-xml-support.png: XML supporting file

Folder Types

The following icons may be used to represent directory folders within directory tree listings:

[Dir] folder.png: Directory folder
[Home] folder-home.png: Home directory folder
[Dir] folder-star.png: Directory for favourites or bookmarks
[World] folder-world.png: Directory for external locations
[Mail] folder-mail.png: Directory for mail messages
[Dir] folder-open.png: Open directory folder
[Dir] folder-important.png: Important directory folder
[Dir] folder-locked.png: Locked directory folder
[Dir] folder-black.png: Directory folder, coloured black
[Dir] folder-blue.png: Directory folder, coloured blue
[Dir] folder-brown.png: Directory folder, coloured brown
[Dir] folder-cyan.png: Directory folder, coloured cyan
[Dir] folder-green.png: Directory folder, coloured green
[Dir] folder-grey.png: Directory folder, coloured grey
[Dir] folder-orange.png: Directory folder, coloured orange
[Dir] folder-red.png: Directory folder, coloured red
[Dir] folder-violet.png: Directory folder, coloured violet
[Dir] folder-yellow.png: Directory folder, coloured yellow

Link and Root Directory Types

The following icons may be used to represent the root of a directory structure, or links to other locations:

[Home] home.png: Home location
[Star] star.png: Favourite, bookmark or top location
[Help] help.png: Help documentation
[Help] help-book.png: Help book documentation
[Drive] drive-internal.png: Hard drive (internal)
[Drive] drive-portable.png: Portable hard drive
[USB] drive-usb.png: USB pen drive
[Floppy] floppy.png: Floppy disk
[CDROM] cdrom.png: CD-ROM or other optical media
[World] world.png: The World (for external locations)
[Mail] mail.png: Mail message

Directions and Miscellaneous

You never really know when you might need the following icons:

[Left] left.png: Left arrow
[Right] right.png: Right arrow
[Up] up.png: Up arrow
[Down] down.png: Down arrow
[Blank] blank.png: Blank icon

Directory Tree Elements

The following icons allow you to create the actual “directory tree listing”. Most icons are square; a few are “double-width” icons. The “short-height” icons (quarter-high) allow you to insert spaces between rows in a directory tree listing.

So that you can see the actual sizes of the directory tree elements, the following icons are displayed with a light-blue border — the border is for debugging purposes only and is not part of the icon:

  tree-H.png: Horizontal line
  tree-S.png: Spacing block
  tree-V.png: Vertical line
  tree-Tn.png: Intermediate join (T-join), no arrow
  tree-Tc.png: Intermediate join (T-join), closed arrow
  tree-To.png: Intermediate join (T-join), open arrow
  tree-Ln.png: Terminating join (L-join), no arrow
  tree-Lc.png: Terminating join (L-join), closed arrow
  tree-Lo.png: Terminating join (L-join), open arrow

  tree-SS.png: Two spacing blocks
  tree-SV.png: Spacing block + Vertical line
  tree-STn.png: Spacing block + T-intersection, no arrow
  tree-STc.png: Spacing block + T-intersection, closed arrow
  tree-STo.png: Spacing block + T-intersection, open arrow
  tree-SLn.png: Spacing block + L-join, no arrow
  tree-SLc.png: Spacing block + L-join, closed arrow
  tree-SLo.png: Spacing block + L-join, open arrow
  tree-VS.png: Vertical line + Spacing block
  tree-VV.png: Vertical line + Vertical line
  tree-VTn.png: Vertical line + T-intersection, no arrow
  tree-VTc.png: Vertical line + T-intersection, closed arrow
  tree-VTo.png: Vertical line + T-intersection, open arrow
  tree-VLn.png: Vertical line + L-join, no arrow
  tree-VLc.png: Vertical line + L-join, closed arrow
  tree-VLo.png: Vertical line + L-join, open arrow

  tree-S-s.png: Short-height spacing block
  tree-V-s.png: Short-height vertical line

  tree-SS-s.png: Short-height spacing block + Spacing block
  tree-SV-s.png: Short-height spacing block + Vertical line
  tree-VS-s.png: Short-height vertical line + Spacing block
  tree-VV-s.png: Short-height vertical line + Vertical line

Larger Icons

Each icon is available in five sizes: 20×20, 26×26, 36×36, 52×52 and 68×68 pixels, although only the smaller sizes are recommended for directory listings:

20×20 pixels (40×40 double-width, 20×5 or 40×5 short-height):

[ADR] [TAR] [ZIP] [DEB] [JAR] [RPM] [TGZ] [WAV] [MID] [OGG] [SPX] [BIN] [BLE] [ERR] [DGN] [DWG] [CAL] [CDA] [ISO] [CHM] [GZ] [VCF] [CSS] [CSV] [CUE] [UI] [PEM] [ENC] [GPG] [PGP] [ASC] [DNG] [DOC] [DNL] [DTD] [EPB] [ELC] [ELP] [NUL] [ETX] [EPS] [EXE] [COM] [CLA] [JVA] [BAT] [KVT] [PCF] [OTF] [TTF] [PFB] [ANY] [KML] [HTM] [ICC] [AI] [PNG] [INF] [LDP] [LY] [LOC] [LYX] [MAN] [MML] [MBX] [MBX] [ERR] [MDB] [XLS] [PPT] [DOC] [DOT] [WRI] [MLT] [NEW] [NZB] [ODC] [ODB] [ODF] [OTF] [ODG] [ODI] [OTI] [ODP] [OTP] [ODS] [OTS] [ODT] [OTT] [DIF] [PDF] [PLG] [POD] [PS] [PSZ] [PRJ] [RDF] [BAK] [RSS] [RTF] [SCB] [SGM] [ADA] [AWK] [C] [H] [CMK] [CPP] [HPP] [CS] [BAT] [HS] [JAV] [JS] [MAK] [PAS] [PL] [PHP] [PLS] [PO] [PY] [QML] [SPC] [RB] [BAT] [SH] [SQL] [TCL] [SRT] [SRT] [SXW] [TEX] [TXT] [TXT] [TXT] [TXT] [TXT] [HEX] [INS] [LOG] [TXT] [TOR] [TR] [UNK] [URL] [ISC] [VCF] [SVG] [SVG] [VID] [WPD] [WEB] [HTM] [XML] [XML] [XSL] [Dir] [Home] [Dir] [World] [Mail] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Home] [Star] [Help] [Help] [Drive] [Drive] [USB] [Floppy] [CDROM] [World] [Mail] [Left] [Right] [Up] [Down] [Blank]

26×26 pixels (52×52 double-width, 26×5 or 52×5 short-height):

[ADR] [TAR] [ZIP] [DEB] [JAR] [RPM] [TGZ] [WAV] [MID] [OGG] [SPX] [BIN] [BLE] [ERR] [DGN] [DWG] [CAL] [CDA] [ISO] [CHM] [GZ] [VCF] [CSS] [CSV] [CUE] [UI] [PEM] [ENC] [GPG] [PGP] [ASC] [DNG] [DOC] [DNL] [DTD] [EPB] [ELC] [ELP] [NUL] [ETX] [EPS] [EXE] [COM] [CLA] [JVA] [BAT] [KVT] [PCF] [OTF] [TTF] [PFB] [ANY] [KML] [HTM] [ICC] [AI] [PNG] [INF] [LDP] [LY] [LOC] [LYX] [MAN] [MML] [MBX] [MBX] [ERR] [MDB] [XLS] [PPT] [DOC] [DOT] [WRI] [MLT] [NEW] [NZB] [ODC] [ODB] [ODF] [OTF] [ODG] [ODI] [OTI] [ODP] [OTP] [ODS] [OTS] [ODT] [OTT] [DIF] [PDF] [PLG] [POD] [PS] [PSZ] [PRJ] [RDF] [BAK] [RSS] [RTF] [SCB] [SGM] [ADA] [AWK] [C] [H] [CMK] [CPP] [HPP] [CS] [BAT] [HS] [JAV] [JS] [MAK] [PAS] [PL] [PHP] [PLS] [PO] [PY] [QML] [SPC] [RB] [BAT] [SH] [SQL] [TCL] [SRT] [SRT] [SXW] [TEX] [TXT] [TXT] [TXT] [TXT] [TXT] [HEX] [INS] [LOG] [TXT] [TOR] [TR] [UNK] [URL] [ISC] [VCF] [SVG] [SVG] [VID] [WPD] [WEB] [HTM] [XML] [XML] [XSL] [Dir] [Home] [Dir] [World] [Mail] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Home] [Star] [Help] [Help] [Drive] [Drive] [USB] [Floppy] [CDROM] [World] [Mail] [Left] [Right] [Up] [Down] [Blank]

36×36 pixels (72×72 double-width, 36×9 or 72×9 short-height):

[ADR] [TAR] [ZIP] [DEB] [JAR] [RPM] [TGZ] [WAV] [MID] [OGG] [SPX] [BIN] [BLE] [ERR] [DGN] [DWG] [CAL] [CDA] [ISO] [CHM] [GZ] [VCF] [CSS] [CSV] [CUE] [UI] [PEM] [ENC] [GPG] [PGP] [ASC] [DNG] [DOC] [DNL] [DTD] [EPB] [ELC] [ELP] [NUL] [ETX] [EPS] [EXE] [COM] [CLA] [JVA] [BAT] [KVT] [PCF] [OTF] [TTF] [PFB] [ANY] [KML] [HTM] [ICC] [AI] [PNG] [INF] [LDP] [LY] [LOC] [LYX] [MAN] [MML] [MBX] [MBX] [ERR] [MDB] [XLS] [PPT] [DOC] [DOT] [WRI] [MLT] [NEW] [NZB] [ODC] [ODB] [ODF] [OTF] [ODG] [ODI] [OTI] [ODP] [OTP] [ODS] [OTS] [ODT] [OTT] [DIF] [PDF] [PLG] [POD] [PS] [PSZ] [PRJ] [RDF] [BAK] [RSS] [RTF] [SCB] [SGM] [ADA] [AWK] [C] [H] [CMK] [CPP] [HPP] [CS] [BAT] [HS] [JAV] [JS] [MAK] [PAS] [PL] [PHP] [PLS] [PO] [PY] [QML] [SPC] [RB] [BAT] [SH] [SQL] [TCL] [SRT] [SRT] [SXW] [TEX] [TXT] [TXT] [TXT] [TXT] [TXT] [HEX] [INS] [LOG] [TXT] [TOR] [TR] [UNK] [URL] [ISC] [VCF] [SVG] [SVG] [VID] [WPD] [WEB] [HTM] [XML] [XML] [XSL] [Dir] [Home] [Dir] [World] [Mail] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Home] [Star] [Help] [Help] [Drive] [Drive] [USB] [Floppy] [CDROM] [World] [Mail] [Left] [Right] [Up] [Down] [Blank]

52×52 pixels (104×104 double-width, 52×13 or 104×13 short-height):

[ADR] [TAR] [ZIP] [DEB] [JAR] [RPM] [TGZ] [WAV] [MID] [OGG] [SPX] [BIN] [BLE] [ERR] [DGN] [DWG] [CAL] [CDA] [ISO] [CHM] [GZ] [VCF] [CSS] [CSV] [CUE] [UI] [PEM] [ENC] [GPG] [PGP] [ASC] [DNG] [DOC] [DNL] [DTD] [EPB] [ELC] [ELP] [NUL] [ETX] [EPS] [EXE] [COM] [CLA] [JVA] [BAT] [KVT] [PCF] [OTF] [TTF] [PFB] [ANY] [KML] [HTM] [ICC] [AI] [PNG] [INF] [LDP] [LY] [LOC] [LYX] [MAN] [MML] [MBX] [MBX] [ERR] [MDB] [XLS] [PPT] [DOC] [DOT] [WRI] [MLT] [NEW] [NZB] [ODC] [ODB] [ODF] [OTF] [ODG] [ODI] [OTI] [ODP] [OTP] [ODS] [OTS] [ODT] [OTT] [DIF] [PDF] [PLG] [POD] [PS] [PSZ] [PRJ] [RDF] [BAK] [RSS] [RTF] [SCB] [SGM] [ADA] [AWK] [C] [H] [CMK] [CPP] [HPP] [CS] [BAT] [HS] [JAV] [JS] [MAK] [PAS] [PL] [PHP] [PLS] [PO] [PY] [QML] [SPC] [RB] [BAT] [SH] [SQL] [TCL] [SRT] [SRT] [SXW] [TEX] [TXT] [TXT] [TXT] [TXT] [TXT] [HEX] [INS] [LOG] [TXT] [TOR] [TR] [UNK] [URL] [ISC] [VCF] [SVG] [SVG] [VID] [WPD] [WEB] [HTM] [XML] [XML] [XSL] [Dir] [Home] [Dir] [World] [Mail] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Home] [Star] [Help] [Help] [Drive] [Drive] [USB] [Floppy] [CDROM] [World] [Mail] [Left] [Right] [Up] [Down] [Blank]

68×68 pixels (136×136 double-width, 68×17 or 136×17 short-height):

[ADR] [TAR] [ZIP] [DEB] [JAR] [RPM] [TGZ] [WAV] [MID] [OGG] [SPX] [BIN] [BLE] [ERR] [DGN] [DWG] [CAL] [CDA] [ISO] [CHM] [GZ] [VCF] [CSS] [CSV] [CUE] [UI] [PEM] [ENC] [GPG] [PGP] [ASC] [DNG] [DOC] [DNL] [DTD] [EPB] [ELC] [ELP] [NUL] [ETX] [EPS] [EXE] [COM] [CLA] [JVA] [BAT] [KVT] [PCF] [OTF] [TTF] [PFB] [ANY] [KML] [HTM] [ICC] [AI] [PNG] [INF] [LDP] [LY] [LOC] [LYX] [MAN] [MML] [MBX] [MBX] [ERR] [MDB] [XLS] [PPT] [DOC] [DOT] [WRI] [MLT] [NEW] [NZB] [ODC] [ODB] [ODF] [OTF] [ODG] [ODI] [OTI] [ODP] [OTP] [ODS] [OTS] [ODT] [OTT] [DIF] [PDF] [PLG] [POD] [PS] [PSZ] [PRJ] [RDF] [BAK] [RSS] [RTF] [SCB] [SGM] [ADA] [AWK] [C] [H] [CMK] [CPP] [HPP] [CS] [BAT] [HS] [JAV] [JS] [MAK] [PAS] [PL] [PHP] [PLS] [PO] [PY] [QML] [SPC] [RB] [BAT] [SH] [SQL] [TCL] [SRT] [SRT] [SXW] [TEX] [TXT] [TXT] [TXT] [TXT] [TXT] [HEX] [INS] [LOG] [TXT] [TOR] [TR] [UNK] [URL] [ISC] [VCF] [SVG] [SVG] [VID] [WPD] [WEB] [HTM] [XML] [XML] [XSL] [Dir] [Home] [Dir] [World] [Mail] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Dir] [Home] [Star] [Help] [Help] [Drive] [Drive] [USB] [Floppy] [CDROM] [World] [Mail] [Left] [Right] [Up] [Down] [Blank]

Examples

You should examine the source code for these examples to “see how it is done”. Open the file sample.html using any text editor, then search for id="examples".

A typical use of the Directory Tree Icons is to present a site-map for a web site (in this case, part of the site-map for the ZAP Group web server). Note the use of multiple tree elements when an item is deeply nested (such as the link to “Local adduser additions”). This directory listing uses the file-url.png icon:

[Root] The ZAP Group home page
[URL] Software projects
[URL] Base Calculator
[URL] Star Traders
[URL] Utility programs
[URL] Local adduser additions (for Debian GNU/Linux)
[URL] AutoRun for CD-ROMs (for Microsoft Windows)
[URL] Other software
[URL] Hardware designs
[URL] Documentation and documents-based projects
[URL] Stylesheets
[URL] The Sinorcaish Web Stylesheet
[URL] Icon images
[URL] Oxygen File-type Icons in five sizes
[URL] Oxygen Directory Tree Icons in five sizes
[URL] Web-based services
[URL] Access to the Subversion repositories
[URL] Users’ home pages
[URL] Local information for members of The ZAP Group

With some clever JavaScript programming, you could make the arrows in the site-map clickable to expand and contract subdirectory trees.

You may choose to use the tree-H.png icon to provide more horizontal spacing, as shown in this next example. This version also uses additional short-height rows, removes the open and closed arrows and does not make the icons themselves into links:

[Root]  The ZAP Group home page
[URL]  Software projects
[URL]  Base Calculator
[URL]  Star Traders
[URL]  Utility programs
[URL]  Local adduser additions (for Debian GNU/Linux)
[URL]  AutoRun for CD-ROMs (for Microsoft Windows)
[URL]  Other software
[URL]  Hardware designs
[URL]  Documentation and documents-based projects
[URL]  Stylesheets
[URL]  The Sinorcaish Web Stylesheet
[URL]  Icon images
[URL]  Oxygen File-type Icons in five sizes
[URL]  Directory Tree Icons in five sizes
[URL]  Web-based services
[URL]  Access to the Subversion repositories
[URL]  Users’ home pages
[URL]  Local information for members of The ZAP Group

The next four examples repeat the first example using larger icons and fonts:

[Root] The ZAP Group home page (Using 26×26 pixel icons)
[URL] Software projects
[URL] Base Calculator
[URL] Star Traders
[URL] Utility programs
[URL] Local adduser additions (for Debian GNU/Linux)
[URL] AutoRun for CD-ROMs (for Microsoft Windows)
[URL] Other software
[URL] Hardware designs
[URL] Documentation and documents-based projects
[URL] Stylesheets
[URL] The Sinorcaish Web Stylesheet
[URL] Icon images
[URL] Oxygen File-type Icons in five sizes
[URL] Oxygen Directory Tree Icons in five sizes
[URL] Web-based services
[URL] Access to the Subversion repositories
[URL] Users’ home pages
[URL] Local information for members of The ZAP Group
[Root] The ZAP Group home page (Using 36×36 pixel icons)
[URL] Software projects
[URL] Base Calculator
[URL] Star Traders
[URL] Utility programs
[URL] Local adduser additions (for Debian GNU/Linux)
[URL] AutoRun for CD-ROMs (for Microsoft Windows)
[URL] Other software
[URL] Hardware designs
[URL] Documentation and documents-based projects
[URL] Stylesheets
[URL] The Sinorcaish Web Stylesheet
[URL] Icon images
[URL] Oxygen File-type Icons in five sizes
[URL] Oxygen Directory Tree Icons in five sizes
[URL] Web-based services
[URL] Access to the Subversion repositories
[URL] Users’ home pages
[URL] Local information for members of The ZAP Group
[Root] The ZAP Group home page (Using 52×52 pixel icons)
[URL] Software projects
[URL] Base Calculator
[URL] Star Traders
[URL] Utility programs
[URL] Local adduser additions (for Debian GNU/Linux)
[URL] AutoRun for CD-ROMs (for Microsoft Windows)
[URL] Other software
[URL] Hardware designs
[URL] Documentation and documents-based projects
[URL] Stylesheets
[URL] The Sinorcaish Web Stylesheet
[URL] Icon images
[URL] Oxygen File-type Icons in five sizes
[URL] Oxygen Directory Tree Icons in five sizes
[URL] Web-based services
[URL] Access to the Subversion repositories
[URL] Users’ home pages
[URL] Local information for members of The ZAP Group
[Root] The ZAP Group home page (Using 68×68 pixel icons)
[URL] Software projects
[URL] Base Calculator
[URL] Star Traders
[URL] Utility programs
[URL] Local adduser additions (for Debian GNU/Linux)
[URL] AutoRun for CD-ROMs (for Microsoft Windows)
[URL] Other software
[URL] Hardware designs
[URL] Documentation and documents-based projects
[URL] Stylesheets
[URL] The Sinorcaish Web Stylesheet
[URL] Icon images
[URL] Oxygen File-type Icons in five sizes
[URL] Oxygen Directory Tree Icons in five sizes
[URL] Web-based services
[URL] Access to the Subversion repositories
[URL] Users’ home pages
[URL] Local information for members of The ZAP Group

The final example is taken from a directory listing of the source code for Star Traders, a simple game of interstellar trading:

[Root] Star Traders home page
(1st level)[URL] Linux and Unix
(2nd level)[DIR] Source code
(3rd level)[DIR] build-aux: Auxiliary build files
(3rd level)[DIR] doc: Documentation
(4th level)[TXT] README: Overview of the doc directory
(4th level)[MAK] Makefile.am: Makefile for the documentation
(4th level)[MAN] trader.6: Manual page for Star Traders
(3rd level)[DIR] lib: GNU Portability Library
(3rd level)[DIR] m4: M4 macros for Autoconf
(3rd level)[DIR] po: Translations
(3rd level)[DIR] src: Main source code
(4th level)[TXT] README: Overview of the src directory
(4th level)[MAK] Makefile.am: Makefile for the main source code
(4th level)[SRC] trader.c: Main program, command-line interface
(4th level)[SRC] trader.h: Main program header
(4th level)[SRC] globals.c: Global game constants and variables
(4th level)[SRC] globals.h: Header for global.c
(4th level)[SRC] game.c: Game start, end and (some) display functions
(4th level)[SRC] game.h: Header for game.c
(4th level)[SRC] move.c: Functions for making and processing a move
(4th level)[SRC] move.h: Header for move.c
(4th level)[SRC] exch.c: Stock Exchange and Bank functions
(4th level)[SRC] exch.h: Header for exch.c
(4th level)[SRC] fileio.c: Load and save game file functions
(4th level)[SRC] fileio.h: Header for fileio.c
(4th level)[SRC] help.c: Help text functions: how to play the game
(4th level)[SRC] help.h: Header for help.c
(4th level)[SRC] intf.c: Basic text input/output functions
(4th level)[SRC] intf.h: Header for intf.c
(4th level)[SRC] utils.c: Utility functions needed by Star Traders
(4th level)[SRC] utils.h: Header for utils.c
(4th level)[SRC] system.h: All system header files are included here
(3rd level)[TXT] README: Overall information for Star Traders
(3rd level)[TXT] INSTALL: Custom-written installation instructions
(3rd level)[TXT] NEWS: Release information
(3rd level)[TXT] COPYING: Copyright licence
(3rd level)[MAK] Makefile.am: Global Makefile
(3rd level)[SRC] configure.ac: Autoconf configuration information
Copyright © 2012, John Zaitseff. Distributed under the terms of the GNU Lesser General Public License.
Last modified: 5th May, 2012.