<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Firefox underlining images</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ted Swanson</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-648695</link>
		<dc:creator>Ted Swanson</dc:creator>
		<pubDate>Thu, 22 Jul 2010 22:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-648695</guid>
		<description>billyjacks solultion is the best.  shaun&#039;s solution, while it works, does not work (as presented) for instances when the image comes AFTER the text.  shaun&#039;s solution has the added benefit that when hovering over the image the link text STILL lights up (provided you&#039;ve styled the link text to change colors).  additionally, using padding between the image and the link text allows one continuous link when mousing between the text and the image.</description>
		<content:encoded><![CDATA[<p>billyjacks solultion is the best.  shaun&#039;s solution, while it works, does not work (as presented) for instances when the image comes AFTER the text.  shaun&#039;s solution has the added benefit that when hovering over the image the link text STILL lights up (provided you&#039;ve styled the link text to change colors).  additionally, using padding between the image and the link text allows one continuous link when mousing between the text and the image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C. Scott Asbach</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-644767</link>
		<dc:creator>C. Scott Asbach</dc:creator>
		<pubDate>Thu, 25 Feb 2010 20:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-644767</guid>
		<description>Actually,  I had accidentally looked at Chrome  instead of Firefox when I thought that worked...(I develop with at least 3 browsers open all th time)

So you can disregard the above, but I did just find what I think is a more elegant solution @ http://www.zen-cart.com/forum/showthread.php?t=116460

a img{vertical-align:middle}

My interpretation is that this  hides the underline behind the image, so if you have transparency or something else that might expose the underline again, you might want to go with your original solution.</description>
		<content:encoded><![CDATA[<p>Actually,  I had accidentally looked at Chrome  instead of Firefox when I thought that worked&#8230;(I develop with at least 3 browsers open all th time)</p>
<p>So you can disregard the above, but I did just find what I think is a more elegant solution @ <a href="http://www.zen-cart.com/forum/showthread.php?t=116460" rel="nofollow">http://www.zen-cart.com/forum/showthread.php?t=116460</a></p>
<p>a img{vertical-align:middle}</p>
<p>My interpretation is that this  hides the underline behind the image, so if you have transparency or something else that might expose the underline again, you might want to go with your original solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C. Scott Asbach</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-644766</link>
		<dc:creator>C. Scott Asbach</dc:creator>
		<pubDate>Thu, 25 Feb 2010 20:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-644766</guid>
		<description>The solution that worked for me was:

a:link img{text-decoration:none}

Put that after your other a:link,a:visited,a:hover rules and it should work for you too.

I&#039;d be interested to know if there was a reason this didn&#039;t work for somebody.</description>
		<content:encoded><![CDATA[<p>The solution that worked for me was:</p>
<p>a:link img{text-decoration:none}</p>
<p>Put that after your other a:link,a:visited,a:hover rules and it should work for you too.</p>
<p>I&#039;d be interested to know if there was a reason this didn&#039;t work for somebody.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-631998</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Fri, 22 May 2009 15:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-631998</guid>
		<description>Thank you for this solution!  The image-underline thing has been bugging me for a while...</description>
		<content:encoded><![CDATA[<p>Thank you for this solution!  The image-underline thing has been bugging me for a while&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-624491</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Wed, 11 Mar 2009 00:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-624491</guid>
		<description>This is eating image links so here we go again:

[a href=&quot;&quot;][img src=&quot;&quot; /]Text[br/][/a]</description>
		<content:encoded><![CDATA[<p>This is eating image links so here we go again:</p>
<p>[a href=""][img src="" /]Text[br/][/a]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-552622</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 05 Mar 2008 16:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-552622</guid>
		<description>Had to add a little more stuff to get it right - but that works - here&#039;s what I added:

a.gecko {
background: transparent url(gecko.gif) no-repeat left top;
padding: 0 0 0 38px;
display: block;
height: 32px;
line-height: 32px;
}

(the gecko image is 32px x 32px)

(I&#039;ve updated the example to include and show this)</description>
		<content:encoded><![CDATA[<p>Had to add a little more stuff to get it right &#8211; but that works &#8211; here&#039;s what I added:</p>
<p>a.gecko {<br />
background: transparent url(gecko.gif) no-repeat left top;<br />
padding: 0 0 0 38px;<br />
display: block;<br />
height: 32px;<br />
line-height: 32px;<br />
}</p>
<p>(the gecko image is 32px x 32px)</p>
<p>(I&#039;ve updated the example to include and show this)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-552546</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Wed, 05 Mar 2008 06:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-552546</guid>
		<description>Give the anchor tag a padding to the left.
Set the background of the anchor tag to the image required, eg

a.example{background: transparent url(gecko_icon.gif) no-repeat scroll left}</description>
		<content:encoded><![CDATA[<p>Give the anchor tag a padding to the left.<br />
Set the background of the anchor tag to the image required, eg</p>
<p>a.example{background: transparent url(gecko_icon.gif) no-repeat scroll left}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TaeKwonJoe</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-532427</link>
		<dc:creator>TaeKwonJoe</dc:creator>
		<pubDate>Thu, 11 Oct 2007 01:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-532427</guid>
		<description>Now try putting two links side by side with
a img {
display:block;
border: none;
float: left;
}
 See in FireFox how the icon floats below the first icon? Looking for another solution for this type of scenario</description>
		<content:encoded><![CDATA[<p>Now try putting two links side by side with<br />
a img {<br />
display:block;<br />
border: none;<br />
float: left;<br />
}<br />
 See in FireFox how the icon floats below the first icon? Looking for another solution for this type of scenario</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-506504</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Thu, 29 Mar 2007 14:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-506504</guid>
		<description>a img {
display:block;
border: none;
float: left;
}</description>
		<content:encoded><![CDATA[<p>a img {<br />
display:block;<br />
border: none;<br />
float: left;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billyjacks</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/21/firefox-underlining-images/comment-page-1/#comment-505600</link>
		<dc:creator>billyjacks</dc:creator>
		<pubDate>Sat, 24 Mar 2007 05:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/21/firefox-behavior/#comment-505600</guid>
		<description>There is no pretty way to do this.

A little better than creating double the links would be setting the &quot;text-decoration: none;&quot; for all links, not just the &quot;a img&quot; like you have above.  Set a span to underline text and then mark up your link text with that.

It saves you from changing out the url x2 for each instance like in your 2nd example and comment.

This method also gets rid of the ugly underline butting up against your image in IE that gets created when it also underlines the space preceding your nonspace text of the link.

The only down side of this is that you have to wrap all plain old regular link text in that span even on links you aren&#039;t using the picture... unless you wanted set classes for your links that didn&#039;t have images + text.  Like I said, it&#039;s probably just a little bit cleaner than making pictures and text each their own links...</description>
		<content:encoded><![CDATA[<p>There is no pretty way to do this.</p>
<p>A little better than creating double the links would be setting the &#034;text-decoration: none;&#034; for all links, not just the &#034;a img&#034; like you have above.  Set a span to underline text and then mark up your link text with that.</p>
<p>It saves you from changing out the url x2 for each instance like in your 2nd example and comment.</p>
<p>This method also gets rid of the ugly underline butting up against your image in IE that gets created when it also underlines the space preceding your nonspace text of the link.</p>
<p>The only down side of this is that you have to wrap all plain old regular link text in that span even on links you aren&#039;t using the picture&#8230; unless you wanted set classes for your links that didn&#039;t have images + text.  Like I said, it&#039;s probably just a little bit cleaner than making pictures and text each their own links&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

