<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Progressive enhancement of links using the CSS attribute selector</title>
	<atom:link href="http://www.last-child.com/css-attribute-selector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com/css-attribute-selector/</link>
	<description>CSS Toys for Professional Web Developers</description>
	<pubDate>Sun, 23 Nov 2008 13:42:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Ted</title>
		<link>http://www.last-child.com/css-attribute-selector/#comment-30034</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Fri, 12 Sep 2008 12:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/?p=152#comment-30034</guid>
		<description>@slob: First off, for accessibility reasons, you must advise your users the link is to a file and is not a normal hyperlink. This is best done by putting the file type in the html. The approach listed is only visual and the text will not appear in the DOM for the screen readers.

So, the text is purely a decorative way of telling someone the file type. However, you could use this technique for other links, such as external links, popup links, form elements, etc.

Now, to get rid of it: 

This is generating the text ":after{content...}It tells the browser to insert content after the link and style it accordingly. If you want to change the link but not add text, use this as your selector: 
a[href$=".mp3"] {}
and don't use the :after{} rule.</description>
		<content:encoded><![CDATA[<p>@slob: First off, for accessibility reasons, you must advise your users the link is to a file and is not a normal hyperlink. This is best done by putting the file type in the html. The approach listed is only visual and the text will not appear in the DOM for the screen readers.</p>
<p>So, the text is purely a decorative way of telling someone the file type. However, you could use this technique for other links, such as external links, popup links, form elements, etc.</p>
<p>Now, to get rid of it: </p>
<p>This is generating the text &#8220;:after{content&#8230;}It tells the browser to insert content after the link and style it accordingly. If you want to change the link but not add text, use this as your selector:<br />
a[href$=".mp3"] {}<br />
and don&#8217;t use the :after{} rule.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slob Jones</title>
		<link>http://www.last-child.com/css-attribute-selector/#comment-30033</link>
		<dc:creator>Slob Jones</dc:creator>
		<pubDate>Fri, 12 Sep 2008 06:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/?p=152#comment-30033</guid>
		<description>I really don't see the need for the explanatory text (.mp3 file) to be included in the link, and thought I'd be able to remove it by adding text-decoration:none;

Example:
a[href$=".mp3"]:after{content: "(.mp3 file)"; color:#999; margin-left:5px; text-decoration:none;}

However, my edit didn't work. Any reason why? Is there another way I can prevent the link from including that text?

Thanks.</description>
		<content:encoded><![CDATA[<p>I really don&#8217;t see the need for the explanatory text (.mp3 file) to be included in the link, and thought I&#8217;d be able to remove it by adding text-decoration:none;</p>
<p>Example:<br />
a[href$=".mp3"]:after{content: &#8220;(.mp3 file)&#8221;; color:#999; margin-left:5px; text-decoration:none;}</p>
<p>However, my edit didn&#8217;t work. Any reason why? Is there another way I can prevent the link from including that text?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ted</title>
		<link>http://www.last-child.com/css-attribute-selector/#comment-29870</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Thu, 12 Jun 2008 20:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/?p=152#comment-29870</guid>
		<description>That sounds like a firefox extension. I vaguely remember having that at one time. I did a quick search of the firefox add-ons section and couldn't find it.</description>
		<content:encoded><![CDATA[<p>That sounds like a firefox extension. I vaguely remember having that at one time. I did a quick search of the firefox add-ons section and couldn&#8217;t find it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.last-child.com/css-attribute-selector/#comment-29869</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Jun 2008 15:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/?p=152#comment-29869</guid>
		<description>I'm not sure how useful this technique is: for me FireFox displays a little icon when I hover over any link, indication what type it is - maybe this is just an extension?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure how useful this technique is: for me FireFox displays a little icon when I hover over any link, indication what type it is - maybe this is just an extension?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.486 seconds -->
