Images & Alt tags 
October 27th, 2008, 01:25 PM
| | | |
Hi Folks,
Is there a way, I can hide images through CSS and then display the alt
tags?
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
Any help would be great.
Many thanks
A | 
October 27th, 2008, 01:55 PM
| | | | re: Images & Alt tags
"UKuser" <spidercc21@yahoo.co.ukwrote in message
news:4b5b7a1d-be65-4977-b2de-db45009a35b8@d45g2000hsc.googlegroups.com... Quote:
Hi Folks,
>
Is there a way, I can hide images through CSS and then display the alt
tags?
| No. Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
| Why do you want to do this? | 
October 27th, 2008, 02:05 PM
| | | | re: Images & Alt tags
UKuser schrieb: Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
| Something like
content: attr(alt);
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.) | 
October 27th, 2008, 03:25 PM
| | | | re: Images & Alt tags
UKuser wrote: Quote:
Hi Folks,
>
Is there a way, I can hide images through CSS and then display the alt
tags?
| There are no alt tags in HTML. Surely you've never seen <alt>. I assume
you mean the alt attribute. Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
| I don't understand what you mean by "doing text-only", or why you are
including images in your page if you want text, and not images, to
appear. Can you clarify what you're looking for? | 
October 27th, 2008, 03:45 PM
| | | | re: Images & Alt tags
Harlan Messinger schrieb: Quote:
I don't understand what you mean by "doing text-only", or why you are
including images in your page if you want text, and not images, to
appear. Can you clarify what you're looking for?
| Maybe he OP wants to create something like
webdeveloper extension -Images -Replace Images With Alt Attributes
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.) | 
October 27th, 2008, 03:45 PM
| | | | re: Images & Alt tags
Johannes Koch wrote: Quote:
Harlan Messinger schrieb: Quote:
>I don't understand what you mean by "doing text-only", or why you are
>including images in your page if you want text, and not images, to
>appear. Can you clarify what you're looking for?
| >
Maybe he OP wants to create something like
>
webdeveloper extension -Images -Replace Images With Alt Attributes
| So that just turns off images as though you'd used the browser's
built-in UI to do that. Correct, it can't be done without Javascript; it
could be done in CSS with hover, but only for as long as the hover
continued. | 
October 27th, 2008, 03:45 PM
| | | | re: Images & Alt tags
Harlan Messinger wrote: Quote:
Johannes Koch wrote: Quote:
>Harlan Messinger schrieb: Quote:
>>I don't understand what you mean by "doing text-only", or why you are
>>including images in your page if you want text, and not images, to
>>appear. Can you clarify what you're looking for?
| >>
>Maybe he OP wants to create something like
>>
>webdeveloper extension -Images -Replace Images With Alt Attributes
| >
So that just turns off images as though you'd used the browser's
built-in UI to do that. Correct, it can't be done without Javascript; it
could be done in CSS with hover, but only for as long as the hover
continued.
| I mean, not directly from the alt text; the text would have to appear in
an adjacent element that's hidden by default. |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|