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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stumped - Strange Display Error

    Hi. I've got a strange error that I can't figure out.

    I've been running an ad on my site using the Google Double Click program since March with no problems.

    Suddenly this week, despite not even logging into Doubleclick or making any changes to the code on any of my pages, one of my larger ads is jumping outside of the space allotted for it and into my text. To make it even stranger, it will only do this periodically. IOW, sometimes the ads are being served correctly, but sometimes they get messed up.

    You can see this happening on this page: http://www.raw-food-health.net/NaturalCures.html

    Continue to hit refresh as my ads cycle until my large green/yellow square ad to the top left of the center column for "The Raw Food Lifestyle Ebook," appears.

    Keep hitting refresh over and over again. It might take a dozen times or more. I've seen this happen in firefox and Safari. I've cleared my cache.

    You'll see that sometimes it appears within its normal area, but sometimes it "jumps" out and partially covers the text to the right of it.

    Since I haven't done anything to my site or my doubleclick settings , I don't know what to make of this.

    I've already sought help on the Doubleclick forum, but the consensus there seems to be that it is not a DC issue, but an HTML issue. You can see lengthy discussion about it here: http://www.google.com/support/forum/...863a36b6&hl=en

    Let me know if there are any other questions I can answer for you.

    Any help you could give me would be greatly appreciated.

    Thanks,
    Andrew

  • #2
    Regular Coder mbaker's Avatar
    Join Date
    Jan 2010
    Location
    Burford, Oxfordshire, United Kingdom
    Posts
    249
    Thanks
    1
    Thanked 39 Times in 39 Posts
    I've had a look at you page when the errant ad is showing in Google Chrome.

    By using Google Chrome's "Inspect Element" (from right click menu) it looks like you could cure the problem by increasing the width reserved for the ad from 300 to 340.

    That is change:

    Code:
                <span 
     style="padding: 5px; text-align: left; float: left; width: 300px;"><!-- PUT THIS TAG IN DESIRED LOCATION OF SLOT MainArticleAd300x250
    -->
    to:

    Code:
                <span 
     style="padding: 5px; text-align: left; float: left; width: 340px;"><!-- PUT THIS TAG IN DESIRED LOCATION OF SLOT MainArticleAd300x250
    -->

    For some reason that I've not been able to determine Google Chrome's "Inspect Element" is showing for the computed style:

    Code:
    -webkit-border-horizontal-spacing: 20px;
    -webkit-border-vertical-spacing: 20px;
    Where this spacing has come from I don't know. If you could eliminate it, that might be a better solution than increasing the reserved width.

    Afterthought:

    The reason this ad is casing a problem where others don't is that it's image uses the full space available of 300 by 250.
    - Michael Baker - HTML Tags Guide - Reference and Tutorials
    - Like voting, validate early, validate often - W3C HTML Validator - W3C CSS Validator
    - Wot? me cynical? no, its just if you vote, er, validate early, you have more chance of validating often.


  •  

    Posting Permissions

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