Replace bullets of a list by pdf icons

Posted by gerdami on 10 Sep 2009 22:11, last edited by gerdami on 30 May 2010 07:01

: bullets icons list pdf

rating: +7

This is a list of attachments

  • first pdf
    • second but indented pdf
    • third
  • first excel
  • second
    • third but indented excel
  • fourth
  • first word
  • second
    • third but indented word
  • fourth

which is rendered by

[[div class="list-pdf"]]
* first pdf
 * second but indented pdf
 * third
[[/div]]
[[div class="list-excel"]]
* first excel
* second
 * third but indented excel
* fourth
[[/div]] 
[[div class="list-word"]]
* first word
* second
 * third but indented word
* fourth
[[/div]]

after having added the following code to the CSS …

div.list-pdful{list-style-image: url(/local--files/system:icons/pdf.gif);
}div.list-excelul{list-style-image: url(/local--files/system:icons/excel.gif);
}div.list-wordul{list-style-image: url(/local--files/system:icons/word.gif);
}

and uploaded the gifs on page system:icons

Notes

  • the examples shown on this page actually use the CSS module
  • icons are attached to this page; however, you should store your icons on a reusable and dedicated page
  • there are other ways to iconize links

Author

gerdami gerdami . Please visit his/her userPage.

Discuss this

The techniques described in the following website

http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html
http://pooliestudios.com/projects/iconize/

explain that it is possible to recognise a link and append / prepend the link with the related icon.

Question: how can we use these techniques to replace a bulleted list by an iconised list ?


Related articles

Comments

GoVegan GoVegan 29 May 2010 23:45

Very cool howto!

by GoVegan GoVegan , 29 May 2010 23:45
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /