SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Nov 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Links not working from External File

    I am just starting out with CSS. All has been going pretty smooth with the exception of one thing...hyperlinks.

    Using an external css file, I put in:

    a:link { color: #0000FF; text-decoration: underline; }
    a:visited { color: #800080; text-decoration: underline; }
    a:active { color: #cc0000; text-decoration: underline; }
    a:hover { color: #cc0000; text-decoration: none; }

    p.black {
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom : 10px;
    margin-left : 10px;
    color:#000000;
    font-size: 8pt;
    font-family: arial;
    }

    --------------------------

    In my .html file I use the regular:

    <p class=black>
    "Appledore Engineering moves to Pease...
    <a href = "moving.html">Click here to read the complete article</a>
    </p>

    Every other part of the css file is recognized, except for the hyperlinks....They either show a color that is part of IE's default for links, or they show something completely different.

    Thanks for your assistance!

  2. #2
    Back in Action Winged Spider's Avatar
    Join Date
    Jun 2001
    Location
    outside my mind
    Posts
    900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just setting just a plan old A attirbute without the events.

    That should probably do it.

    like:
    Code:
    a { color: #0000FF; text-decoration: underline; }


  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try reordering the pseudo-classes...

    a:link { … }
    a:visited { … }
    a:hover { … }
    a:active { … }

    Humour me, try it.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  4. #4
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes, as Bill implied, they have to be in that order

    www.w3schools.com has a bunch of CSS info if you're stuck again
    Mike
    It's not who I am underneath, but what I do that defines me.

  5. #5
    SitePoint Member
    Join Date
    Nov 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Still no Luck!!!

    Thanks for the posts...and so timely!!!

    Alright, I reordered the attributes in the css file and still am not having luck...so I will post the link....so you guys can see the full picture and pick up something that I may not be translating to the post correctly:

    http://www.appledoreeng.com/oct/index2.html

    Click on the "NEWS" link...

    The CSS is here:

    http://www.appledoreeng.com/oct/stylesheet.css

    Thanks so much for your help.

  6. #6
    SitePoint Member
    Join Date
    Nov 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GOT IT!!

    Big dummy....

    In the very bottom of my CSS, I had the code that made the links wierd....I hadn't been bothering to look at the very bottom...bad me....



Bookmarks

Posting Permissions

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