css link styles don't work

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default css link styles don't work

    Hi-I've made a css style that is supposed to make links and visited links on
    the main part of my page one color and the links and visited links on the
    bottom part of my page another color. I cannot get it to work and can't see why
    it won't work. Can anyone help? The website I'm doing is
    [url]http://vintagemorgans.com[/url]

    The class attrributes for the main page links are called "main" and the class
    attributes for the bottom links are called "bottom"

    If anyone can help, I would really appreciate it!




    shelld Guest

  2. Similar Questions and Discussions

    1. Different Link Styles on same page
      I would like to have two different Link Styles on the same page - in the center table I have Bold and RED links but farther down I would like to...
    2. Link styles with CSS
      Hi there, Please have a look at the site I'm currently working on: http://www.team-o.org. I am using CSS for virtually everything you see on the...
    3. How do we get needed XML styles to work with CFChart
      The Webcharts 3D designer (shipped with Coldfusion) has exactly the kind of chart we need (Statistical histogram). Great! :D See the XML, below....
    4. link font styles with db
      I'm having a problem with the links that I have set up. I have anchor tags on column headings from a database that users can sort by. The sorting...
    5. Problem using different a:link CSS styles in Template
      Is it possible to use more than one CSS for hyperlinks on a template based page. I'm trying to have different hyperlink properties on the same page....
  3. #2

    Default Re: css link styles don't work

    I have followed the step by step directions and still can't see what I did
    wrong. See the attached code for the style sheet. Thanks!

    .bottom {
    color: f1e1c8;
    }
    .main a:link {
    color: 002200;
    }
    .main a:visited {
    color: 663300;
    }
    .main a:hover {
    color: 002200;
    }
    .main a:active {
    color: 002200;
    }
    .bottom a:link {
    color: f1e1c8;
    }
    .bottom a:visited {
    color: 999966;
    }
    .bottom a:hover {
    color: f1e1c8;
    }
    .bottom a:active {
    color: f1e1c8;
    }

    shelld Guest

  4. #3

    Default Re: css link styles don't work

    Okay, I see what you're doing. Change your css to reflect the following (I
    copied and pasted your css and made the modifications):

    .bottom {
    color: f1e1c8;
    }
    a.main:link {
    color: 002200;
    }
    a.main:visited {
    color: 663300;
    }
    a.main:hover {
    color: 002200;
    }
    a.main:active {
    color: 002200;
    }
    a.bottom:link {
    color: f1e1c8;
    }
    a.bottom:visited {
    color: 999966;
    }
    a.bottom:hover {
    color: f1e1c8;
    }
    a.bottom:active {
    color: f1e1c8;
    }


    This should work now. Let us know how it goes and keep coding!

    wizardofdata Guest

  5. #4

    Default Re: css link styles don't work

    ..oO(wizardofdata)
    >Okay, I see what you're doing. Change your css to reflect the following (I
    >copied and pasted your css and made the modifications):
    The CSS was correct.
    >[...]
    > a.bottom:active {
    > color: f1e1c8;
    > }
    >
    >
    > This should work now. Let us know how it goes and keep coding!
    Please learn how to use descendant selectors. Applying a class to every
    link is really ugly code.

    Micha
    Michael Fesser Guest

  6. #5

    Default Re: css link styles don't work

    ..oO(shelld)
    >Hi-I've made a css style that is supposed to make links and visited links on
    >the main part of my page one color and the links and visited links on the
    >bottom part of my page another color. I cannot get it to work and can't see why
    >it won't work. Can anyone help? The website I'm doing is
    >[url]http://vintagemorgans.com[/url]
    Works here. Or what am I missing?

    Micha
    Michael Fesser Guest

  7. #6

    Default Re: css link styles don't work

    I made the changes to the code and it still doesn't work. The links at the
    bottom are supposed to change to another color after they're visited.

    Could it be something from within Dreamweaver not working? I'm using
    Dreamweaver MX. Any other ideas? I appreciate your help!

    shelld Guest

  8. #7

    Default Re: css link styles don't work

    ..oO(shelld)
    >I made the changes to the code and it still doesn't work. The links at the
    >bottom are supposed to change to another color after they're visited.
    OK, I _did_ miss something ...

    [url]http://jigsaw.w3.org/css-validator/validator?uri=http://vintagemorgans.com/&warning=1&profile=css2[/url]

    Color values have to start with an '#'.

    Micha
    Michael Fesser Guest

Posting Permissions

  • You may not post new threads
  • You may 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