Computing.Net > Forums > Web Development > Alt tag

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Alt tag

Reply to Message Icon

Name: Jamie_McCoy
Date: July 16, 2004 at 07:45:29 Pacific
OS: XP Pro 5.1
CPU/Ram: Pentium 4 2.4Ghz
Comment:

can you use the alt tag in CSS

i really need to know fast, help wanted!

Jaymc.co.nr



Sponsored Link
Ads by Google

Response Number 1
Name: b0red
Date: July 16, 2004 at 08:16:19 Pacific
Reply:

I'm 100% sure that is a no :)


0

Response Number 2
Name: safeTsurfa
Date: July 16, 2004 at 08:33:10 Pacific
Reply:

No Jamie, the ALT tag is strictly an X/HTML thing, not a stylesheet component.


0

Response Number 3
Name: Jamie_McCoy
Date: July 16, 2004 at 09:12:54 Pacific
Reply:

DAMMM!!! i really needed that effect

The thing is im using a mouse over effect to swap the image, can you think of a way i can achieve an alt effect.

i think i could use Java, but is their anything else...

Jaymc.co.nr


0

Response Number 4
Name: Jamie_McCoy
Date: July 16, 2004 at 09:20:09 Pacific
Reply:

is their a way to apply an alt in a text link using html, or is it only for images

Jaymc.co.nr


0

Response Number 5
Name: SN
Date: July 16, 2004 at 14:13:09 Pacific
Reply:

You wouldn't want to depend on the ALT tag for any kind of visual effect. It is too browser-dependent, and only meant to provide a way for you to substitute text for an image in case the browser is not image-capable.

To achieve the affect, just make a DIV with absolute or relative positioning, and style display: none. Then when the user mouses over your link, run a small javascript that switches the display to display: block. OnMouseOut, switch the display back to display: none.

-SN


0

Related Posts

See More



Response Number 6
Name: safeTsurfa
Date: July 17, 2004 at 03:45:02 Pacific
Reply:

"is their a way to apply an alt in a text link using html, or is it only for images"

Yes, write it into the link tag as usual, substituting alt= with title=.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Alt tag

Alt Tag www.computing.net/answers/webdevel/alt-tag/1680.html

How Important is ALT Text In Search www.computing.net/answers/webdevel/how-important-is-alt-text-in-search/2066.html

code works in Firefox but not in IE www.computing.net/answers/webdevel/code-works-in-firefox-but-not-in-ie/2252.html