Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print

Status
Not open for further replies.

transparent

Programmer
Sep 15, 2001
333
0
0
GB
I'm playing with the CSS for my site.

I have defined a css file for print purposes.

In the print version of my site, I would like to display the text in the alt attributes of the images on my site.

Is this possible to do with CSS?
 
In IE there is this Javascript onbeforeprint function.

Using Javascript you could replace all images by <span>s with the alt text inside.

But I only recommend this when you are sure all your users use IE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top