NeoPuma
08-17-2010, 12:13 AM
Hi All,
Just wondering if anyone can help me with a small problem I'm having. Below, is the link colour I have set - dark blue.
This is mainly used for the main content enclosed in the div with the id of 'body_box'
a:link, a:visited, a:active {
color: #27679D;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #131562;
}
However, I also have the following for just the footer bar.
.footer_block a:link, a:visited, a:active { color: #CCCCCC; }
.footer_block a:hover { color: #09F09F; }
The problem I'm having is that ALL text, regardless of position in the code, seems to take the colours of that of the 'footer_block'. If I swap the position of the CSS (put the main ones after the .footer_block ones), then they all take the original colours and not those defined above. These are the only elements I'm having problems with and really has confused me.
As a guideline, this is the layout:
<html>
<head>
</head>
<body>
<div id="wrap">
<div id="header_box">
</div>
<div id="body_box">
</div>
<div id="footer">
<div class="footer_block">
</div>
<div class="footer_block">
</div>
</div>
</div>
</div>
</body>
</html>
Unfortunately, the site's not public and I can't post a link because it's not my site!
Any help would be a massive help.
Just wondering if anyone can help me with a small problem I'm having. Below, is the link colour I have set - dark blue.
This is mainly used for the main content enclosed in the div with the id of 'body_box'
a:link, a:visited, a:active {
color: #27679D;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #131562;
}
However, I also have the following for just the footer bar.
.footer_block a:link, a:visited, a:active { color: #CCCCCC; }
.footer_block a:hover { color: #09F09F; }
The problem I'm having is that ALL text, regardless of position in the code, seems to take the colours of that of the 'footer_block'. If I swap the position of the CSS (put the main ones after the .footer_block ones), then they all take the original colours and not those defined above. These are the only elements I'm having problems with and really has confused me.
As a guideline, this is the layout:
<html>
<head>
</head>
<body>
<div id="wrap">
<div id="header_box">
</div>
<div id="body_box">
</div>
<div id="footer">
<div class="footer_block">
</div>
<div class="footer_block">
</div>
</div>
</div>
</div>
</body>
</html>
Unfortunately, the site's not public and I can't post a link because it's not my site!
Any help would be a massive help.