I have a specific div where I want to customize the link style, overriding the global settings. In my code, I have two different styles for links - one is global and the other is specific. Here's how it looks:
A:link {text-decoration: none; color: #FF0000;}
A:visited {text-decoration: none; color: #FF0000;}
A:hover {text-decoration: none; color: #FF0000;}
A:active {text-decoration: none; color: #FF0000;}
#macrosectiontext
{
position:relative;
font:Arial, sans-serif;
text-align:center;
font-size:50px;
font-style: bold;
margin-top:245px;
opacity: 0.6;
background-color:transparent;
}
#macrosectiontext A:link {text-decoration: none; color: #000000;}
#macrosectiontext A:visited {text-decoration: none; color: #FFFFFF;}
#macrosectiontext A:hover {text-decoration: none; color: #FFFFFF;}
#macrosectiontext A:active {text-decoration: none; color: #FFFFFF;}
When using the div ID like this:
<div id="macrosectiontext"><a href="www.google.it">bla bla bla</a></div>
It appears that my customization doesn't take effect as expected. The div continues to inherit the global link style.