Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Positioning help needed

    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    okay change this
    Code:
    <div id="ad-header"><script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
      </script>
    </div>
    to this
    Code:
    <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

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •