<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043792" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043792</link>
    <description></description>
    <language>en</language>
          <item>
    <title>CSS image replacement is</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241250</link>
    <description> &lt;p&gt;CSS image replacement is actually the standard way of solving this problem. It keeps a standard text link in the nav menu (better for search engines and screen readers) while displaying a special font to other browsers. Of course, now the ability to use special fonts in CSS is getting closer to becoming a reality so that would be something else to experiment with (as would be sIFR and similar techniques).&lt;/p&gt;
&lt;p&gt;What you&#039;re proposing is still a hack, it&#039;s just not in CSS. &lt;/p&gt;
&lt;p&gt;If you are trying to bait people you really need to stop it or I &lt;em&gt;will&lt;/em&gt; do something about it.&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 18:07:19 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1241250 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Let&#039;s not debate again by</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241246</link>
    <description> &lt;p&gt;Let&#039;s not debate again by hair splitting!&lt;/p&gt;
&lt;p&gt;The truth of the matter is I DID indeed ask for an ALT text to background image, but reading my post provides enough information to understand what I am ACTUALLY trying to do.&lt;br /&gt;
That is offer some text to search engines and screen readers for links that don&#039;t have any.&lt;/p&gt;
&lt;p&gt;Cheers for the suggestions.&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 16:14:53 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1241246 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Well, Megan, this is like</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241244</link>
    <description> &lt;p&gt;Well, Megan, this is like the discussion about &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; is not a META tag...&lt;/p&gt;
&lt;p&gt;The OP asked &lt;em&gt;how to add ALT text to a background image&lt;/em&gt;, which is not possible.&lt;/p&gt;
&lt;p&gt;I proposed placing a transparent image in the same location in the doc with the ALT text. You suggested adding text to the link and positioning it offscreen.&lt;/p&gt;
&lt;p&gt;In a semantic, structural way, I think my solution is closer to achieving the goal in the OP, by adding ALT text at that position in the document.&lt;/p&gt;
&lt;p&gt;Although I think positioning the span text offscreen will work, I am wary of css &quot;tricks&quot; unless they are absolutely necessary.&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 15:48:26 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241244 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>decibel.places</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241241</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;decibel.places&lt;/em&gt; wrote:&lt;/div&gt;however, your method adds an innerHTML text value to the link, rather than an alt value to the image&lt;/p&gt;
&lt;p&gt;my method, with transparent images, adds an image with an alt value at the same position in the doc as the background image&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So?&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 15:37:36 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1241241 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>you&#039;re right Megan, some</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241240</link>
    <description> &lt;p&gt;you&#039;re right Megan, some screenreaders will not &quot;read&quot; an element with display:none and others ignore visibility:none and some ignore both.&lt;/p&gt;
&lt;p&gt;if you want the page accessible, it is best to position the text off the page&lt;/p&gt;
&lt;p&gt;however, your method adds an innerHTML text value to the link, rather than an alt value to the image&lt;/p&gt;
&lt;p&gt;my method, with transparent images, adds an image with an alt value at the same position in the doc as the background image&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 15:34:35 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241240 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You need to look into image</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241235</link>
    <description> &lt;p&gt;You need to look into image replacement techniques. One technique involves keeping the text in your navigation menu, something like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;ul id=&amp;quot;main_nav&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=&amp;quot;/index.php&amp;quot; class=&amp;quot;home&amp;quot;&amp;gt;&amp;lt;span&amp;gt;Home&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then positioning the span off the page:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#main_nav li span {&lt;br /&gt; position: absolute&lt;br /&gt; left: -3000px;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Display:none could also be used but sometimes screen readers pay attention to that so it&#039;s not as reliable.&lt;/p&gt;
&lt;p&gt;Seach for CSS image replacement for other examples.&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 14:57:12 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1241235 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>&gt; If the image is</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/alt-text-background-images-css#comment-1241234</link>
    <description> &lt;blockquote&gt;&lt;p&gt;&lt;a href=&quot;http://archivist.incutio.com/viewlist/css-discuss/77009&quot;&gt;&amp;gt; If the image is presentational, it should be in the background with no alt&lt;br /&gt;
&amp;gt; if the image is content, it should be in img tags, and properly alt&#039;ed.&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;what about adding a transparent image with and alt tag?&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;ul id=&amp;quot;main_nav&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=&amp;quot;/index.php&amp;quot; class=&amp;quot;home&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;transparent.gif&amp;quot; alt=&amp;quot;alt text&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;also, while it is possible to have an empty link, I prefer to put something in there, eg &lt;code&gt;&amp;amp;nbsp;&lt;/code&gt; - I think that habit may be from an old issue with empty links in tables in IE3?&lt;/p&gt;
 </description>
     <pubDate>Sun, 03 May 2009 14:49:00 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241234 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
