Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense and CSS

how do I avoid css affecting adsense?

         

wariental

8:13 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



I picked my color schemes for google adsense and now all my text in it inlcuding the link text is just plain black.

How do I stop this from happening and is this against adsense rules?

trillianjedi

8:15 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try going through the process and generating the code again.

Something's gone wrong in that process. This is not a CSS issue.

Don't manually try and edit the code - use the online tool.

TJ

wariental

8:53 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



I'll mention that I just got adsense.

Also , I have copy and pasted the code exactly(twice).
Iam using the half banner 234x60 within a <td> tag.

Is it just take a bit to update?

jimbeetle

9:10 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is it just take a bit to update?

It shouldn't, the color information is defined in the Adsense code that you paste in:

google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";

Besides doing what TJ suggested and going back through the setup steps -- yep, again ;) -- you might want to check the surrounding html or any other scripts on the page. Maybe something like an unclosed or wrongly located tag is making the Adsense code choke.

celgins

9:32 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I could be wrong, but this sounds like an HTML/CSS problem. Not the Adsense CSS, but your local CSS.

Since your browser's default link color is probably blue, check sure your local CSS color schemes for black-colored links. (If you have them)

Maybe the problem is somewhere in your <td>, <tr>, or <table> statements.

Tearabite

11:55 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



I have this exact same issue with my forum script.

no matter what colors i choose in the Adsense setup, the link text is always black..

.

leadegroot

7:00 am on Mar 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Its possible that it is a caching problem - try viewing the page in a different browser? - but it could be a css 'problem'. Do you understand the cascade properly?
I would try viewing it in Firefox and open the DOM Inspector (under Tools). Very powerful tool for debugging CSS.