r884 - html/trunk/lfs

gerard at linuxfromscratch.org gerard at linuxfromscratch.org
Wed Apr 25 21:41:14 PDT 2007


Author: gerard
Date: 2007-04-25 22:41:14 -0600 (Wed, 25 Apr 2007)
New Revision: 884

Modified:
   html/trunk/lfs/adsense-main-header.html
   html/trunk/lfs/adsense.css
Log:
remove invalid center tag. Wrap adsense around table. add css to make it center in both mozilla and MSIE type browsers.

Modified: html/trunk/lfs/adsense-main-header.html
===================================================================
--- html/trunk/lfs/adsense-main-header.html	2007-04-26 04:30:16 UTC (rev 883)
+++ html/trunk/lfs/adsense-main-header.html	2007-04-26 04:41:14 UTC (rev 884)
@@ -10,7 +10,8 @@
   <body>
 
   <!-- Start Google AdSense Code Block -->
-<center>
+<table class="adsense">
+<tr><td>
   <script type="text/javascript"><!--
     google_ad_client = "pub-1920546463376456";
     google_ad_width = 728;
@@ -24,7 +25,8 @@
   <script type="text/javascript"
     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
   </script>
-</center>
+</td></tr>
+</table>
   <!-- End Google AdSense Code Block -->
 
     <div id="banner"><a href="/index.html"><img src="/images/lfs-logo.png"

Modified: html/trunk/lfs/adsense.css
===================================================================
--- html/trunk/lfs/adsense.css	2007-04-26 04:30:16 UTC (rev 883)
+++ html/trunk/lfs/adsense.css	2007-04-26 04:41:14 UTC (rev 884)
@@ -90,9 +90,12 @@
 	border: none;
 }
 
-div.adsense {
+table.adsense {
 	position: absolute;
 	top: 10px;
+	margin-left: auto;
+	margin-right: auto;
+	text-align: center;
 }
 
 div.navbar {




More information about the website mailing list