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.
Link Color Problem
Started by SnydeMz, Oct 26 2010 12:27 AM
2 replies to this topic
#1
Posted 26 October 2010 - 12:27 AM
|
|
|
#2
Posted 26 October 2010 - 01:10 AM
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:
And in your CSS:
<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.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#3
Posted 31 October 2010 - 04:38 PM
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.
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.


Sign In
Create Account

Back to top









