link colors

Discussion in 'HTML' started by pkg, Oct 8, 2007.

  1. pkg

    pkg Guest

    Dear all!

    I want to create a link which is displayed as an image. So I tried the
    following code:
    <a href="http:/...de"><img src="....gif"</a>
    How can I avoid the blue frame around the image without changing the
    global options for links???

    Many thanks for help!

    BR

    pkg
     
    pkg, Oct 8, 2007
    #1
    1. Advertising

  2. pkg

    John L. Guest

    pkg wrote:
    > Dear all!
    >
    > I want to create a link which is displayed as an image. So I tried the
    > following code:
    > <a href="http:/...de"><img src="....gif"</a>
    > How can I avoid the blue frame around the image without changing the
    > global options for links???
    >
    > Many thanks for help!


    Add the following to your style sheet:

    a img {
    border: 0;
    }
     
    John L., Oct 8, 2007
    #2
    1. Advertising

  3. pkg

    pkg Guest

    On 8 Okt., 13:45, "John L." <> wrote:
    > pkg wrote:
    > > Dear all!

    >
    > > I want to create a link which is displayed as an image. So I tried the
    > > following code:
    > > <a href="http:/...de"><img src="....gif"</a>
    > > How can I avoid the blue frame around the image without changing the
    > > global options for links???

    >
    > > Many thanks for help!

    >
    > Add the following to your style sheet:
    >
    > a img {
    > border: 0;
    >
    > }


    I don't have (and would prefer not to make) a special style sheet ...
    I tried
    ------------------------
    <style a img {
    border: 0;

    blablabla

    </style>
    ------------------------
    but then the whole page was void!???

    pkg
     
    pkg, Oct 8, 2007
    #3
  4. pkg wrote:
    > On 8 Okt., 13:45, "John L." <> wrote:
    >> pkg wrote:
    >>> Dear all!
    >>> I want to create a link which is displayed as an image. So I tried the
    >>> following code:
    >>> <a href="http:/...de"><img src="....gif"</a>
    >>> How can I avoid the blue frame around the image without changing the
    >>> global options for links???
    >>> Many thanks for help!

    >> Add the following to your style sheet:
    >>
    >> a img {
    >> border: 0;
    >>
    >> }

    >
    > I don't have (and would prefer not to make) a special style sheet ...
    > I tried
    > ------------------------
    > <style a img {
    > border: 0;
    >
    > blablabla
    >
    > </style>
    > ------------------------
    > but then the whole page was void!???
    >
    > pkg
    >


    Because that is *not* the correct syntax.

    <style type="text/css">
    a img {
    border: 0;
    }
    </style>

    and should be located within the documents HEAD element.

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Oct 8, 2007
    #4
  5. Scripsit pkg:

    > I want to create a link which is displayed as an image.


    Stop wanting that. Problem solved.

    > So I tried the following code:
    > <a href="http:/...de"><img src="....gif"</a>


    It's invalid syntax, and the URL isn't correct either.

    > How can I avoid the blue frame around the image without changing the
    > global options for links???


    That would make the situation even worse, since now the user has no hint of
    the image being a link. But you avoid this if you just don't use images as
    links.

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
     
    Jukka K. Korpela, Oct 8, 2007
    #5
  6. pkg

    pkg Guest

    On 8 Okt., 17:30, "Jonathan N. Little" <> wrote:
    > pkg wrote:
    > > On 8 Okt., 13:45, "John L." <> wrote:
    > >> pkg wrote:
    > >>> Dear all!
    > >>> I want to create a link which is displayed as an image. So I tried the
    > >>> following code:
    > >>> <a href="http:/...de"><img src="....gif"</a>
    > >>> How can I avoid the blue frame around the image without changing the
    > >>> global options for links???
    > >>> Many thanks for help!
    > >> Add the following to your style sheet:

    >
    > >> a img {
    > >> border: 0;

    >
    > >> }

    >
    > > I don't have (and would prefer not to make) a special style sheet ...
    > > I tried
    > > ------------------------
    > > <style a img {
    > > border: 0;

    >
    > > blablabla

    >
    > > </style>
    > > ------------------------
    > > but then the whole page was void!???

    >
    > > pkg

    >
    > Because that is *not* the correct syntax.
    >
    > <style type="text/css">
    > a img {
    > border: 0;}
    >
    > </style>
    >
    > and should be located within the documents HEAD element.
    >
    > --
    > Take care,
    >
    > Jonathan
    > -------------------
    > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com


    Ah yes! Thanks!
    pkg
     
    pkg, Oct 8, 2007
    #6
    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. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    891
    Kevin Spencer
    May 17, 2005
  2. Brian

    Link colors

    Brian, Jul 21, 2005, in forum: HTML
    Replies:
    14
    Views:
    912
    Noozer
    Jul 22, 2005
  3. Woodmon
    Replies:
    20
    Views:
    16,791
    Toby Inkster
    Oct 22, 2005
  4. AAaron123

    TreeNode colors come from anchor colors

    AAaron123, Aug 7, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    554
    darrel
    Aug 7, 2008
  5. ZelluX
    Replies:
    3
    Views:
    1,921
    Peter Otten
    Dec 1, 2008
Loading...

Share This Page