Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: background images and span element when images are turned off

Reply
Thread Tools

Re: background images and span element when images are turned off

 
 
Adrienne Boswell
Guest
Posts: n/a
 
      08-02-2009
Gazing into my crystal ball I observed stef <(E-Mail Removed)>
writing in news:020820092120171086%(E-Mail Removed) :

> Hi everybody
>
> I'm looking for the following: on a web page i saw how a number of
> techniques for using background images on links. There was one
> technique where you would also insert a span element with descriptive
> text, which was to be shown *under* the link when images were turned

of
> in the browser. I remember (or at least thinks so) that z-index was
> used to position the span below the link. Can anyone point me to this
> technique please?
>
> Thanks in advance and best regards
>
> stef
>


Well, that's kind of counter productive, isn't it, considering there is
a well known attribute that is required and displays when images are not
available.

<p><a href="http://example.com" title="Visit Example"><img
src="example.png" alt="Example image" height="height" width="width"></a>
</p>

Can you guess which one it is?

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      08-04-2009
In article
<(E-Mail Removed)>,
stefbourdon <(E-Mail Removed)> wrote:

> In article <Xns9C5B8A014A137arbpenyahoocom@188.40.43.213>,
> Adrienne Boswell <(E-Mail Removed)> wrote:
>
> > Gazing into my crystal ball I observed stef <(E-Mail Removed)>
> > writing in news:020820092120171086%(E-Mail Removed) :
> >


> > > I'm looking for the following: on a web page i saw how a number of
> > > techniques for using background images on links. There was one
> > > technique where you would also insert a span element with descriptive
> > > text, which was to be shown *under* the link when images were turned

> > of
> > > in the browser. I remember (or at least thinks so) that z-index was
> > > used to position the span below the link. Can anyone point me to this
> > > technique please?
> > >


> > Well, that's kind of counter productive, isn't it, considering there is
> > a well known attribute that is required and displays when images are not
> > available.
> >
> > <p><a href="http://example.com" title="Visit Example"><img
> > src="example.png" alt="Example image" height="height" width="width"></a>
> > </p>
> >
> > Can you guess which one it is?

>
> background-image, not image


You want a text link?

1. That has a background image?

2. That shows some text of your choosing when the image is not there?

3. Text that is different to the text of the link that is already there?

4. Text that is the same as the text that is already there but that is,
God willing, exactly congruent and in position over or under the text
already there?

5. Text that is the same as the text that is already there but is
spatially apart from the text already there and so repeats?

You have no actual text link, it is an image in an anchor element but
you want

1. A background image behind this image?

2. Some text to appear if all images are not available?

3. This text is to be a substitute for the link, the image link is self
explanatory when available, there is alt text but this is not wanted.

4. You don't like alt text, something traumatic happened in a meeting
with alt text once and it is private and you do not wish to discuss it
publicly?

5. You are quite happy with alt text as far as it goes but that is not
very far and you want longer alt text and want to explore "longdesc"?

I better stop, I just wanted to offer some moral support to Adrienne
before I go watch: The Chase (Marlon Brando, Jane Fonda, Robert Redford)
for the first time...

--
dorayme
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't code a css class that makes a span element the same size as a button element Cal Who ASP .Net 5 04-26-2010 05:35 PM
Re: background images and span element when images are turned off Travis Newbury HTML 0 08-04-2009 10:27 AM
Can span include span? Fulio Open HTML 5 06-26-2009 10:24 PM
Enable drag and drop to the text between <span></span> Wang, Jay Javascript 5 05-25-2004 09:33 PM
Buffering cannot be turned off once it is already turned on. Lord Merlin ASP General 0 04-11-2004 06:04 PM



Advertisments