 |
 |
Can I Change ALT Text Color?
|
 |
|
 |
|
Senior User
Join Date: May 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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
|
|
|
|
"...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
|
|
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>
<style type=<font color = red>"text/css"</font>>
<!--
img {
color: text-color-goes-here;
}
-->
</style>
</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
|
|
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
|
|
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:
<a href="funurl.html" class="imagelinks"><img src="spiffy.gif"></a>
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: May 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
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:
<a href="funurl.html" class="imagelinks"><img src="spiffy.gif"></a></STRONG>
Yep -- that did it! Thanks Jadey. I also tried putting the class link in the <IMG> tag instead of <A> and it worked just the same. Looks SOOOOO much better now. I also changed the typeface too...

|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|