bdsams Veteran Posted June 13, 2007 Veteran Share Posted June 13, 2007 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 More sharing options...
0 NateB Posted June 13, 2007 Share Posted June 13, 2007 <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 More sharing options...
0 Dick Montage Posted June 13, 2007 Share Posted June 13, 2007 (edited) Whack the whole thing inside: <div style="text-align: center;"> ...YOURCODE... </div> as the above <center> tag is long depreciated. Link to comment Share on other sites More sharing options...
0 bdsams Veteran Posted June 13, 2007 Author Veteran Share Posted June 13, 2007 Whack the whole thing inside: <div style="text-align: center;"> ...YOURCODE... </div> 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 More sharing options...
Question
bdsams Veteran
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