Forum Moderators: not2easy

Message Too Old, No Replies

Google and CSS

This looks dodgy to me, but will google be bothered?

         

kanama

5:28 am on Aug 4, 2004 (gmt 0)

10+ Year Member



Trying CSS layout and have this bit of code

body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#000000;
margin:0px;
padding:0px;
background-color:#000000;
}

Now from looking at that it appears background and text colour are the same but the text would be set out in divs that have a white background.

what would google think of the above code?

Bonusbana

8:41 am on Aug 4, 2004 (gmt 0)

10+ Year Member



Im not sure about google, but why specify color: #000;?

Black is the default color for almost every browser, there is little need to specify this in your body. I wouldn't want to risk that the site gets banned by google for spam (even though Im not sure it will).

benihana

8:45 am on Aug 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



default background for the browser (on win machines at least) is based on the windows system colors.

Bonusbana

8:49 am on Aug 4, 2004 (gmt 0)

10+ Year Member



default background for the browser (on win machines at least) is based on the windows system colors.

Does this also apply to font colors?

benihana

8:53 am on Aug 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i believe so.

Hester

9:24 am on Aug 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why would Google be interested in your CSS?

Bonusbana

1:03 pm on Aug 4, 2004 (gmt 0)

10+ Year Member



Google can interpret stuff like hidden divs with lots of links & text as spam. Also, text with the same color as the background can cause google to ban the site.

Most often it doesn't happen but sometimes...

You can, however, always put your css in an external file and put it in a separate directory. The modify your robots.txt file to limit googles crawling. That way, google will never find out about your css.

MatthewHSE

1:06 pm on Aug 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google cares if your text is the same color as the background, that is, at least when it's done using the old "bgcolor" and "<font color="...">" methods. Or so I've heard. Given that that's true, I wouldn't be surprised if they started looking at CSS for that purpose. But, I'd also be very surprised if they didn't also look at the background color of the element in which the text is placed - that's what matters, after all.