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>

  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>

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    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?

  6. #6
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    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