Website Development Resources
CHouseLive

Links with image prompts

Making Hyperlink Icons with CSS

Implementation

To create these customised links, you need only use css

a[href $= '.pdf']{
  padding-left:20px;
  background: transparent url(pdf.gif) no-repeat scroll left top;
}

Other Selectors

a[href ^= '#']
a[target = '_blank']
a[href ^= 'mailto']
a[class ~= 'popup']

Tags to specify locations

$= End of String

^= Beginning of String

~= String contains the word and is separated from other words by spaces.

*= String contains the word. (doesn't have to be separated by spaces)

If you have encountered a problem with this demonstration, or would like an amendment made to the referencing and attributions of the scripts and code used on this page, please send the CHouseLive team an email: cara_remove_@chouselive_remove_.org