Connecting Tech Pros Worldwide Forums | Help | Site Map

Images & Alt tags

UKuser
Guest
 
Posts: n/a
#1: Oct 27 '08
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

rf
Guest
 
Posts: n/a
#2: Oct 27 '08

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?


Johannes Koch
Guest
 
Posts: n/a
#3: Oct 27 '08

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.)
Harlan Messinger
Guest
 
Posts: n/a
#4: Oct 27 '08

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?
Johannes Koch
Guest
 
Posts: n/a
#5: Oct 27 '08

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.)
Harlan Messinger
Guest
 
Posts: n/a
#6: Oct 27 '08

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.
Harlan Messinger
Guest
 
Posts: n/a
#7: Oct 27 '08

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.
Closed Thread