www.webdeveloper.com
Results 1 to 6 of 6

Thread: Changing link color

  1. #1
    Join Date
    May 2005
    Posts
    31

    Changing link color

    Ok, I know this is simple, and I have done it before, but my brain is taking a nap this morning. How do I change the link, alink, and vlink attributes of an image so that there is no border around it, indicating that it is a link?? TIA

    -Dave

  2. #2
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    HTML Code:
    <style type="text/css">
    a img{border: 0;}
    </style>
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

  3. #3
    Join Date
    Jun 2005
    Posts
    26
    Also, maybe:

    Code:
    <style>
    <!--
    a:link    { text-decoration: none; }
    a:hover   { text-decoration: none; }
    a:visited { text-decoration: none; }
    a:active  { text-decoration: none; }
    -->
    </style>
    Robert
    Gee! Web Tools
    Web Content Management / Internet Marketing Tools including:
    Page Editor - Calendar Manager - News Editor - Mail Wizard

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    That should be
    Code:
    <style type="text/css">
    <!--
    a:link    { text-decoration: none; }
    a:hover   { text-decoration: none; }
    a:visited { text-decoration: none; }
    a:active  { text-decoration: none; }
    -->
    </style>
    There is no default style sheet language and more than one exists. You must specify whch one you are using. Also, that works for HTML; in XHTML you must remove the comment marks.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Quote Originally Posted by Charles
    There is no default style sheet language and more than one exists.
    I know that you're right but, what other ones are there?
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

  6. #6
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    There's also JavaScript Style Sheet Language, mime type "text/javascript". More of a curiosity now it was once a useful way tailor styles in Netscape 4.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles