Forum Moderators: open
<style type="text/css">
<!--
A:link { color: dddddd; text-decoration: underline; }
A:active { color: #0099ff; text-decoration: underline; }
A:visited { color: #dddddd; text-decoration: underline; }
A:hover { color: #ffffff; text-decoration: none; }
-->
</style>
in the <head></head>. My concern is that the page has a black bgcolor, and I have no idea if Google reads the <style></style> content and might assume the link is black and therefore hidden, (even though the links are on a silver background table cell).
The site is PR6 and doing great on Google... I don't want to mess things up just before the deepcrawl.
Thanks for any help.
First, change
A:link { color: dddddd; text-decoration: underline; } A { color: [b]#[/b]dddddd; text-decoration: underline; } Then, if you're worried about Google not "knowing" the links are on a silver background, why not add the background color to all the links as well?
A { color: #dddddd; text-decoration: underline; [b]background: silver;[/b] } This will eliminate any concerns you might have. Also, it is considered good style to always specify a background color whenever you specify a text color, and vice versa, just to ensure that they won't clash on any browser.
<style type="text/css">
<!--
A:link { color: #dddddd; text-decoration: underline; background: #333333}
A:active { color: #0099ff; text-decoration: underline; }
A:visited { color: #dddddd; text-decoration: underline; }
A:hover { color: #ffffff; text-decoration: none; }
-->
</style>
(the cell colour is dark grey actually)
If I leave this in:
<body bgcolor="black" text="white" link="dddddd">
just to be sure, will it be acceptable? It seems to render fine in IE6 and Netscape 4.73
This is much appreciated. I love this place.
To be perfectly honest though, and please don't take offense, it is not a wise thing to do if you're facing the future.
All the W3C standards are pointing towards a separation of style and content. Let CSS take care of style, while HTML take care of content formatting.
I would leave the BODY tag blank ..
Either way, the color
dddddd should have a # in front of it. It is also better to avoid named colors and always use the RGB hex codes. On a completely other note, when defining basic anchor styles, you don't need to define them using
a:link .. in fact, it should be just a Not all browsers recognize
a:link .. and even if they do, a is enough. It will cover everything left out (such as a:focus .. or other browsers specific ones)
I don't want to get too fancy until I know what i'm doing.