Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
kregg #1
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
-
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... -
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... -
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... -
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:... -
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... -
Murray *TMM* #2
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
-
kregg #3
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
-
Murray *TMM* #4
Re: CSS Multiple Links Help Please
> It seems to lay the "class" in the wrong place of the code, so it
I'd have to see your before and after code to know what happened. But this> doesn't work.
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



Reply With Quote

