HighDots Forums  

Icons on Links

Website Design comp.infosystems.www.authoring.site-design


Discuss Icons on Links in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric Lindsay
 
Posts: n/a

Default Icons on Links - 01-20-2009 , 05:25 PM






I have started using attribute selectors targeting the extension of a
file name to add an appropriate icon to a link. The idea is to visually
indicate that the target is not a web page, as might be expected, but
actually a possibly unexpected PDF or a MS Word document.

Example

a[href$=".pdf"] {
background: url(images/pdf_icon.png) right center no-repeat;
padding-right: 20px;
}

a[href$=".doc"] {
background: url(images/doc_icon.png) right center no-repeat;
padding-right: 20px;
}

In searching my own web pages, the only relevant file extensions I found
were .pdf and .doc I will also be adding the OpenOffice .odt file
extensions, since I expect to have links to these in future.

Does anyone have any suggestions of other file extensions worth
targeting? The only other one that occurs to me at the moment is .ppt
for Powerpoint.

--
http://www.ericlindsay.com

Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: Icons on Links - 01-21-2009 , 01:28 AM






Gazing into my crystal ball I observed Eric Lindsay
<NOwebmasterSPAM (AT) ericlindsay (DOT) com> writing in news:NOwebmasterSPAM-
632001.08254621012009 (AT) freenews (DOT) iinet.net.au:

Quote:
I have started using attribute selectors targeting the extension of a
file name to add an appropriate icon to a link. The idea is to
visually
indicate that the target is not a web page, as might be expected, but
actually a possibly unexpected PDF or a MS Word document.

Example

a[href$=".pdf"] {
background: url(images/pdf_icon.png) right center no-repeat;
padding-right: 20px;
}

a[href$=".doc"] {
background: url(images/doc_icon.png) right center no-repeat;
padding-right: 20px;
}

In searching my own web pages, the only relevant file extensions I
found
were .pdf and .doc I will also be adding the OpenOffice .odt file
extensions, since I expect to have links to these in future.

Does anyone have any suggestions of other file extensions worth
targeting? The only other one that occurs to me at the moment is .ppt
for Powerpoint.

Take a look what programs your browser opens, and that will give you a
nice list.

In Firefox: Tools, Applications
Opera: Tools, Advanced, Downloads
IE: Sorry, don't know - don't use it.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
  #3  
Old   
Eric Lindsay
 
Posts: n/a

Default Re: Icons on Links - 01-22-2009 , 01:31 AM



In article <Xns9B99E589CACF4arbpenyahoocom (AT) 207 (DOT) 115.17.102>,
Adrienne Boswell <arbpen (AT) yahoo (DOT) com> wrote:

Quote:
Gazing into my crystal ball I observed Eric Lindsay
NOwebmasterSPAM (AT) ericlindsay (DOT) com> writing in news:NOwebmasterSPAM-
632001.08254621012009 (AT) freenews (DOT) iinet.net.au:

In searching my own web pages, the only relevant file extensions I
found
were .pdf and .doc I will also be adding the OpenOffice .odt file
extensions, since I expect to have links to these in future.

Does anyone have any suggestions of other file extensions worth
targeting? The only other one that occurs to me at the moment is .ppt
for Powerpoint.


Take a look what programs your browser opens, and that will give you a
nice list.

In Firefox: Tools, Applications
Opera: Tools, Advanced, Downloads
IE: Sorry, don't know - don't use it.
Buried in Preferences on a Macintosh, for both Opera and Firefox (Safari
isn't saying). Thanks for the idea. It is indeed a nice list of
potential items to put icons on. My bandwidth had been so limited for so
long that I didn't even think of the various movie formats.

--
http://www.ericlindsay.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.