• 0

How do i center this on the page?


Question

how do i get this banner to be centered on my page...this is the code

<script type="text/javascript"><!--

google_ad_client = "pub-5431750451677229";

google_ad_width = 468;

google_ad_height = 60;

google_ad_format = "468x60_as";

google_ad_type = "text_image";

google_ad_channel = "";

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

what do i need to put so that it centers itself?

Im very new at this,

THanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

<script type="text/javascript"><!--

google_ad_client = "pub-5431750451677229";

google_ad_width = 468;

google_ad_height = 60;

google_ad_format = "468x60_as";

google_ad_type = "text_image";

google_ad_channel = "";

//-->

</script>

<center>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

</center>

Link to comment
Share on other sites

  • 0

Whack the whole thing inside:

&lt;div style="text-align: center;"&gt;
...YOURCODE...
&lt;/div&gt;

as the above <center> tag is long depreciated.

Link to comment
Share on other sites

  • 0
Whack the whole thing inside:

&lt;div style="text-align: center;"&gt;
...YOURCODE...
&lt;/div&gt;

as the above <center> tag is long depreciated.

thanks Nj your code worked :) the other above didnt and threw back some error....thanks again!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.