On one of my sites I was going to try adding an Adsense for search form but the thing is even with center tags around the Adsense code it always aligns to the left which looks really naff on my site. Is there a way to center the search form that is allowed by the google adsense TOS?
I know it isn't but as far as im aware tampering with their code is, I tried using center or <div align="center"> tags but they didnt work.
You placed a </div> at the end of the code right? Yes, changing adsense code is against TOS.. but this isn't changingn the codes at all.
Hello there, I tried the above but no luck. Any ideas? In the javascript section of my webpage, I have pasted the google adsense code. However, the ads appear left justified, while my whole page is centered. I am using the template provided by my web hosting company. Here is the adsense code: <script type="text/javascript"><!-- google_ad_client = "pub-8412696060861566"; //728x90, created 11/15/07 google_ad_slot = "2248396055"; google_ad_width = 728; google_ad_height = 90; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Any thoughts on how to center the ads? I have tried using the <center> and <div align="center"> tags, but it doesn't work. Thanks in advance, darthsk8r
just do: <center> ADSENSE </center> or try: <div align="center"> <div>all this is centered</div> </div> or with CSS: <div style=""text-align:center; "
None of these worked. Maybe I am not coding it properly. Does the code have to be on the same line or something simple like that?