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

Discussion in 'HTML' started by Adrienne Boswell, Aug 2, 2009.

  1. Gazing into my crystal ball I observed stef <>
    writing in news:020820092120171086%:

    > 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
    Adrienne Boswell, Aug 2, 2009
    #1
    1. Advertising

  2. Adrienne Boswell

    dorayme Guest

    In article
    <>,
    stefbourdon <> wrote:

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


    > > > 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
    dorayme, Aug 4, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QnJpYW4gQ2FsbA==?=

    "Access is denied" error with Indexing Service turned off

    =?Utf-8?B?QnJpYW4gQ2FsbA==?=, Jul 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    431
    =?Utf-8?B?QnJpYW4gQ2FsbA==?=
    Jul 13, 2004
  2. Will
    Replies:
    1
    Views:
    4,004
  3. mrcakey
    Replies:
    4
    Views:
    316
    freemont
    Sep 5, 2007
  4. Travis Newbury
    Replies:
    0
    Views:
    434
    Travis Newbury
    Aug 4, 2009
  5. Lord Merlin
    Replies:
    0
    Views:
    606
    Lord Merlin
    Apr 11, 2004
Loading...

Share This Page