CSS Multiple Links Help Please

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

  1. #1

    Default CSS Multiple Links Help Please

    Hello,

    I have tried several ways and classes and such to have different link styles
    (colors, etc.) on one page and I want to use an external style sheet so it is
    all in one place, but I can't seem to pull it off for some reason.

    I have attached the code I set up in the external style sheet, but now when I
    try to refer the "menu" links, I can't seem to get them to work. Can anyone
    tell me how to reference them so that they show up?

    I highlight the links I want and then choose "menu" under CSS style in
    Dreamweaver, but it doesn't work.

    Thanks very much.



    CODE ON STYLE SHEET

    a:link {
    color: #330000;
    text-decoration: none;
    font-weight: bold;

    }
    a:visited {
    color: #A14517;
    text-decoration: none;
    font-weight: bold;

    }
    a:hover {
    color: #89935B;
    text-decoration: none;
    font-weight: bold;

    }


    a.menu:link {
    color: #CC0000;
    text-decoration: none;
    font-weight: bold;

    }
    a.menu:visited {
    color: #660000;
    text-decoration: none;
    font-weight: bold;

    }
    a.menu:hover {
    color: #33FF00;
    text-decoration: none;
    font-weight: bold;

    }


    CODE ON HTML PAGE TO CHOOSE MENU

    <a href="exhibitors.html" class="menu">Exhibitors</a>

    kregg Guest

  2. Similar Questions and Discussions

    1. Updating multiple Links ?
      I have a website which I use to link to documents published as .PDF files. I typically develop my page(s) in Contribute, establish a link to the...
    2. multiple links changed
      I manage a website for my wife's red hat club. One page is a photo directory with 9 pictures with labels. Each picture and lable is linked to...
    3. AI 10 updating Multiple links function GONE! or not?
      Hi all! Could be being kinda stoopid here but in previous incarnations of AI (pre AI 10 under OS 9 MAC) if you renamed your folders or moved a...
    4. Multiple Links from a teaxt box (URL and Marker)
      You need to be able to differentiate between the types of link. If you make sure that all the links intended to be links to the web start with http:...
    5. Multiple rollovers with links
      Thanks Mike for your feedback. I haven't used the "show pop-up menu behavior linked with a series of show/hide layer behaviors" before so I'll...
  3. #2

    Default Re: CSS Multiple Links Help Please

    Your code is correct and adequate for what you are trying to accomplish. It
    will work.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "kregg" <webforumsuser@macromedia.com> wrote in message
    news:dnffnm$17v$1@forums.macromedia.com...
    > Hello,
    >
    > I have tried several ways and classes and such to have different link
    > styles
    > (colors, etc.) on one page and I want to use an external style sheet so it
    > is
    > all in one place, but I can't seem to pull it off for some reason.
    >
    > I have attached the code I set up in the external style sheet, but now
    > when I
    > try to refer the "menu" links, I can't seem to get them to work. Can
    > anyone
    > tell me how to reference them so that they show up?
    >
    > I highlight the links I want and then choose "menu" under CSS style in
    > Dreamweaver, but it doesn't work.
    >
    > Thanks very much.
    >
    >
    >
    > CODE ON STYLE SHEET
    >
    > a:link {
    > color: #330000;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    > a:visited {
    > color: #A14517;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    > a:hover {
    > color: #89935B;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    >
    >
    > a.menu:link {
    > color: #CC0000;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    > a.menu:visited {
    > color: #660000;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    > a.menu:hover {
    > color: #33FF00;
    > text-decoration: none;
    > font-weight: bold;
    >
    > }
    >
    >
    > CODE ON HTML PAGE TO CHOOSE MENU
    >
    > <a href="exhibitors.html" class="menu">Exhibitors</a>
    >

    Murray *TMM* Guest

  4. #3

    Default Re: CSS Multiple Links Help Please

    Hi Murray,

    Thanks for responding. It did end up working. What doesn't work is if you
    choose all the links at once and choose "Menu" in Dreamweavers list of CSS drop
    down menu. It seems to lay the "class" in the wrong place of the code, so it
    doesn't work.

    It only works if you code it by hand or highlight one link at a time and
    choose "Menu" from the drop down list.

    Thanks.

    kregg Guest

  5. #4

    Default Re: CSS Multiple Links Help Please

    > It seems to lay the "class" in the wrong place of the code, so it
    > doesn't work.
    I'd have to see your before and after code to know what happened. But this
    is not the way I'd do it anyhow. I'd make my CSS like this -

    #menu a { whatever; }
    #menu a:hover { whatever }

    and my HTML like this -

    <div id="menu"><a href="link1.html">Link 1</a>...<a href="link2.html">Link
    2</a>...</div>

    That way I don't have to apply anything to anything.


    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "kregg" <webforumsuser@macromedia.com> wrote in message
    news:dnfq78$e0a$1@forums.macromedia.com...
    > Hi Murray,
    >
    > Thanks for responding. It did end up working. What doesn't work is if
    > you
    > choose all the links at once and choose "Menu" in Dreamweavers list of CSS
    > drop
    > down menu. It seems to lay the "class" in the wrong place of the code, so
    > it
    > doesn't work.
    >
    > It only works if you code it by hand or highlight one link at a time and
    > choose "Menu" from the drop down list.
    >
    > Thanks.
    >

    Murray *TMM* 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