Not sure if I am asking or saying this right. But I am looking to put Google Adsense script code in CSS instead of my HTML file. Can I do this? Please explain how. Thanks.
CSS is only for styling and doesn’t get processed like HTML does.
Browsers are programmed to ignore those CSS rules they can’t understand. So the code would be just ignored, in the best case scenario.
More likely, because sometimes browsers don’t always ignore what they can’t understand, your site will look like crap because your CSS would be broken.
ok, thanks. Makes sense, had to ask.
According to the Google Adsense Help Forum it’s not permitted.
I admit I sometimes have difficulty understanding exactly what Google means, even after reading something a few times.
My take is that it is against the terms to use CSS to change the display, at least “too much” whatever that might be.
But as far as putting code inside of CSS AFAIK that is impossible, not even with content: 'code here';
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.