Skip to content

A CSS module that adds icons after hyperlinks depending on hyperlink targets extension or URI-scheme.

Notifications You must be signed in to change notification settings

arnklint/Hyperlink-icons-with-CSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This is a CSS "module" essentially consisting of an image (a sprite image) and a stylesheet for you to add nice little icons to the right of hyperlinks that lead to a file with a certain extension. Find examples in index.html. Source and sprite image are about 16kb uncompressed unminified.

Compatability

Tested successfully in Firefox, Camino, Safari, Opera & Internet Explorer 7 (6 doesn't work)

Installation

For production, simply use the hyperlink_icons.css as a stylesheet and make sure that it is referencing the sprite.gif image correctly. This should make links look like the examples in index.html

About

A CSS module that adds icons after hyperlinks depending on hyperlink targets extension or URI-scheme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published