Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can I Change ALT Text Color?

Can I Change ALT Text Color?
Thread Tools
Senior User
Join Date: May 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jul 31, 2001, 10:34 PM
 
I haven't figured out how to accomplish this, but before an image loads there is alt text that appears in it's place. Every time the text (for me) is blue. Can I change this? If so, where? I've tried changing the general color of all text on the page in the body tag, and adding a color tag to the <IMG> tag, but neither worked.

Can it be changed?[/LIST]
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 1, 2001, 07:41 AM
 
Nope.
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Aug 1, 2001, 10:13 AM
 
What browser is this in? Theoretically at least, it should inherit the text color of the stuff around it (this assumes you are using CSS to do your styling, though).

I don't know whether or not you're trying to do CSS, but you might want to try it in this case. Add the following up in the headers:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
&lt;style type=<font color = red>"text/css"</font>&gt;
&lt;!--
img {
color: text-color-goes-here;
}
--&gt;
&lt;/style&gt;
</font>[/code]That should -at least theoretically- style your ALT text in most browsers. It might not style it in some of them, but if it can't then nothing will.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Dedicated MacNNer
Join Date: Sep 1999
Location: Grand Forks, ND, USA
Status: Offline
Reply With Quote
Aug 1, 2001, 04:13 PM
 
Originally posted by Millennium:
<STRONG>That should -at least theoretically- style your ALT text in most browsers. It might not style it in some of them, but if it can't then nothing will.</STRONG>
Works in IE5 Mac and Mozilla .92 at least. If you're worried about older browsers and don't mind marking in HTML 3.2 doctype, you could also wrap the img tag with a font tag specificying the color of the text.
     
Forum Regular
Join Date: Mar 2001
Location: CANADA
Status: Offline
Reply With Quote
Aug 1, 2001, 05:03 PM
 
Another style sheet solution that definately works is using a different link class for the image anchor. So in your CSS:

.imagelinks { color: ff0000;}

Then your link:

&lt;a href="funurl.html" class="imagelinks"&gt;&lt;img src="spiffy.gif"&gt;&lt;/a&gt;
     
Senior User
Join Date: May 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 2, 2001, 05:08 AM
 
Originally posted by Jadey:
<STRONG>Another style sheet solution that definately works is using a different link class for the image anchor. So in your CSS:

.imagelinks { color: ff0000;}

Then your link:

&lt;a href="funurl.html" class="imagelinks"&gt;&lt;img src="spiffy.gif"&gt;&lt;/a&gt;</STRONG>
Yep -- that did it! Thanks Jadey. I also tried putting the class link in the &lt;IMG&gt; tag instead of &lt;A&gt; and it worked just the same. Looks SOOOOO much better now. I also changed the typeface too...

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2