...

View Full Version : Positioning help needed



BBlackwell
02-23-2005, 09:05 PM
I am trying to redo this page without using tables and am unable to get the Adsense banner (ad-header) line up on the Right Margin, and the footer (footer-copyright) line up in the Center, to position properly. What kind of errors have I created? I validated the CSS and Html thinking I would find the problems, that did not work.

The page is http://www.sendacake.net/apple_pie.htm
and the CSS is http://www.sendacake.net/CSS/core-style.css

Thanks for the help,

Bob

_Aerospace_Eng_
02-23-2005, 09:16 PM
okay change this

<div id="ad-header"><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
to this

<div id="ad-header">
<div id="ads"><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
and use the attached css file, you needed to use margin:auto; for the footer div and rather than floating any divs i just made a div for the ad-sense which is 100% in width and then i put the div with the actual adsense in side that div and i used text-align:right; in the adsense container div

BBlackwell
02-23-2005, 10:38 PM
That works great, Thanks... :) It lines up perfect in IE but the AdSense block does not move in FF 1.0 Does FF require a work around? or do I have another problem.

Thanks again for the help,

Bob



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum