Forums / Templates, Stylesheets, Page Layout / How to center my google ads on footer?

How to center my google ads on footer?

Locked

Views: 1,126

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Nov 2010, 6:01 AM
#1
sjbglx avatar

sjbglx

New Zenner

Join Date:
Sep 2010
Posts:
70
Plugin Contributions:
0

How to center my google ads on footer?

I have a script of google ads,

<script type="text/javascript"><!-- google_ad_client = "ca-pub-5692163435352102342"; /* booksbridge */ google_ad_slot = "5872342465"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

and I want to center it on the footer of my main page. but it always align left....no matter what I do ...what file should I modify ?
the stylesheet.css or footer.php? and how?

Anybody knows about this?
Thank you!

30 Nov 2010, 6:26 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to center my google ads on footer?

Give it it's own div id like:

<div id="googleAds">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5692163435352102342";
/* booksbridge */
google_ad_slot = "5872342465";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

Then, in your stylesheet.css add:

#googleAds {text-align: center;}

That should do it.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

30 Nov 2010, 5:45 PM
#3
sjbglx avatar

sjbglx

New Zenner

Join Date:
Sep 2010
Posts:
70
Plugin Contributions:
0

Re: How to center my google ads on footer?

Get Em Fast:

Give it it's own div id like:

<div id="googleAds">

<script type="text/javascript"><!-- google_ad_client = "ca-pub-5692163435352102342"; /* booksbridge */ google_ad_slot = "5872342465"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

</div>

> 
> Then, in your stylesheet.css add:
> 
> ```
#googleAds {text-align: center;}

That should do it.

This did do it!!!
Thank you Thank youThank you!!!
hahahha, I am very happy!:clap:

1 Dec 2010, 12:48 AM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: How to center my google ads on footer?

You're quite welcome.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!