Mejora la calidad de tus Links – CSS

En tu hoja css añade este código

#content a[href $=’.pdf’] { 
padding-right: 18px; 
background: transparent url(http://www.smultron.es/wp-content/uploads/image/icon_pdf.gif) no-repeat center right; 
}

Otras expresiones

[foo] — Has an attribute named "foo"

[foo="bar"] — Has an attribute named "foo" with a value of "bar" ("bar")

[foo~="bar"] — Value has the word "bar" in it somewhere ("blue bar stools")

[foo^="bar"] — Value begins with "bar" ("barstool")

[foo$="bar"] — Value ends with "bar" ("I was at the bar")

[foo*="bar"] — Value has bar somewhere ("I was looking for barstools")

Via: http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS

Mejora la calidad de tus Links – CSS
0 votes, 0.00 avg. rating (0% score)

About this entry