Results 1 to 4 of 4

Thread: Colour of Links

  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Glasgow, Lanarkshire
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Colour of Links

    My WEB www.jim-stewart.co.uk built with Dreamweaver 6.1 has nine links in page properties the links are colored #FF00FF yet three links are dark blue.
    Anyone know why?.

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Colour of Links

    Which links are blue? - they all look the same (pink/purple) colour to me.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Colour of Links

    Where are you coloring the links? Your stylesheet addresses appear to be invalid in Firefox:

    <link href="file:///F|/Webs/Web/jmt_award/allpages/css/sppark.css" rel="stylesheet" type="text/css" />
    <link href="file:///F|/Webs/Web/jmt_award/allpages/css/blkgrnd.css" rel="stylesheet" type="text/css" />
    <link href="file:///F|/Webs/Web/jmt_award/allpages/css/blkgrnd.css" rel="stylesheet" type="text/css" />

    I did see some font color tags, but the browser's default link colors, or the colors in your stylesheets, will override the font tag's color attribute. You can override the stylesheet with a style defined in the anchor tag itself, if you wish. Here's an example (you'll need to paste into a text file and name it with a .HTML extension and load it in a browser):

    <html>
    <head>
    <title>Link color demo</title>
    <style>
    a:link { color: green; font-weight: bold }
    a:visited { color: gray }
    a:active, a:hover { color: black; font-weight: bold; background-color: yellow}
    </style>
    <head>
    <body>


    This is a test link with no color attribute: Visit WOPR!</p>


    This is a test link with an blue font tag color
    attribute: <font color="blue">Visit WOPR!</font></p>


    This is a test link with an blue style attribute
    in the a tag: Visit WOPR!</p>
    </body>
    </html>

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Sydney, Australia, New South Wales, Australia
    Posts
    251
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Colour of Links

    You need to change the link hrefs from a local drive (F to a web address (either an absolute URL such as <link href="http://www.jim-stewart.co.uk/css/sppark.css" rel="stylesheet" type="text/css" /> or a relative URL (shorter and usually sweeter, such as <link href="/css/sppark.css" rel="stylesheet" type="text/css" />
    Peter

Posting Permissions

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