Jump to content

Link Color Problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
SnydeMz

SnydeMz

    Newbie

  • Members
  • Pip
  • 5 posts
I am using Macromedia Dreamweaver to make a website(dynamic page-php). When creating the site i made it such that all links take the same characteristics on a page. So if a link on the menu takes the color yellow on rollover , so do the links at the footer and at any other point in the page. How do i alter this ,so that links at different sections take different characteristics.

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
I am not sure how Dreamweaver works or creates content, but you can apply a class name to your links you wish to be different:
<a href="foo.html" class="yellow">foobar</a>

And in your CSS:
.yellow:link {color: navy;}
.yellow:visited {color: navy;}
.yellow:active {color: yellow;}
.yellow:hover {color: underline; color: yellow;}

Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
PETTE

PETTE

    Learning Programmer

  • Members
  • PipPipPip
  • 50 posts
I am coming for a coding point of view.

Let's say you have:

body {
color:blue;
}


Create a new class and apply it to the footer's outer most DIV for example a div with an applied class of .footer

.footer a {
color:black
}


I hope you know about CSS because you won't be able to do this if you don't.