Professional Web Applications Themes

CSS error? - Macromedia Dreamweaver

I'm trying my hand at CSS for the first time and seem to be having a small problem that I can't figure out. I have the following in a file called links.css ========== a:link {/*normal links in the text*/ color: #000000; text-decoration : none;} a:visited { color: #FF0000; text-decoration : none; background: #FFFFFF;} a:hover { color: #999999; text-decoration : underline; background: #FFFFFF;} then in my asp page I have added <link href="links.css" rel="stylesheet" type="text/css"> to the head section. And then a link like the following <a href="Feed_Back_Form/An_Feed_Back_Form.asp" class="link" target="_top">Anonymous feed back form</a> The problem I'm running into is that everything ...

  1. #1

    Default CSS error?

    I'm trying my hand at CSS for the first time and seem to be having a small problem that I can't figure out.

    I have the following in a file called links.css
    ==========
    a:link {/*normal links in the text*/
    color: #000000;
    text-decoration : none;}
    a:visited {
    color: #FF0000;
    text-decoration : none;
    background: #FFFFFF;}
    a:hover {
    color: #999999;
    text-decoration : underline;
    background: #FFFFFF;}

    then in my asp page I have added <link href="links.css" rel="stylesheet" type="text/css"> to the head section.
    And then a link like the following <a href="Feed_Back_Form/An_Feed_Back_Form.asp" class="link" target="_top">Anonymous feed back form</a>

    The problem I'm running into is that everything displays properly from within Deamweaver. If I make changes to the CSS file the changes appear in Dreamweaver. When I upload both the CSS file and the asp page with the link for some reason the css file has no effect on the link? Any ideas?



    UpNorth webforumsuser@macromedia.com Guest

  2. #2

    Default Re: CSS error?

    > Any ideas?

    You don't have a class called 'link'. In fact, I don't think you can (it's a
    reserved work, I believe.)

    What you want to do is this:

    ..classname a:link {styles}

    -Darrel


    darrel Guest

  3. #3

    Default Re: CSS error?

    First, having a:link is fine...

    Second, can you provide a URL? It helps if we can see the problem in action.
    All I can guess from the info provided is that it might be looking for the
    CSS file in the wrong directory. You might try making that css link href an
    absolute url pointing to the CSS file, and see if that gets it working.



    --
    Lance Goins
    [url]http://makeashorterlink.com/?X165518A2[/url]


    "UpNorth" <webforumsusermacromedia.com> wrote in message
    news:bfhaot$qgf$1forums.macromedia.com...
    > I'm trying my hand at CSS for the first time and seem to be having a small
    problem that I can't figure out.
    >
    > I have the following in a file called links.css
    > ==========
    > a:link {/*normal links in the text*/
    > color: #000000;
    > text-decoration : none;}
    > a:visited {
    > color: #FF0000;
    > text-decoration : none;
    > background: #FFFFFF;}
    > a:hover {
    > color: #999999;
    > text-decoration : underline;
    > background: #FFFFFF;}
    >
    > then in my asp page I have added <link href="links.css" rel="stylesheet"
    type="text/css"> to the head section.
    > And then a link like the following <a
    href="Feed_Back_Form/An_Feed_Back_Form.asp" class="link"
    target="_top">Anonymous feed back form</a>
    >
    > The problem I'm running into is that everything displays properly from
    within Deamweaver. If I make changes to the CSS file the changes appear in
    Dreamweaver. When I upload both the CSS file and the asp page with the link
    for some reason the css file has no effect on the link? Any ideas?
    >
    >

    Lance Guest

  4. #4

    Default Re: CSS error?

    please check out my website and let me know why there is a red line underneath all of my text.

    www.nujackcity.com

    please any help will be appreciated.
    Unregistered Guest

Similar Threads

  1. Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
    By wendy_matarazzo@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 2
    Last Post: May 11th, 06:12 PM
  2. Replies: 0
    Last Post: March 29th, 09:49 PM
  3. Replies: 0
    Last Post: November 10th, 05:24 PM
  4. Replies: 0
    Last Post: September 25th, 03:23 AM
  5. Replies: 1
    Last Post: August 7th, 07:13 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139