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 Coder
    Join Date
    Feb 2009
    Location
    South Africa and USA
    Posts
    63
    Thanks
    30
    Thanked 0 Times in 0 Posts

    Right side border on Adsense ad not showing

    For some reason the right side border of an adsense ad is not showing. All other sides show the border.

    The code is:

    Code:
    <div style="width: 250px; float:left; margin: -5px 0px 0px 0px; padding-right: 15px;"><script type="text/javascript"><!--
    google_ad_client = "ca-pub-7215989865207229";
    /* Mid Page 250 Sq Border */
    google_ad_slot = "6726913708";
    google_ad_width = 250;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></div>
    The URL is here.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello EnnisP,
    The border shows fine when I look in FF4 and IE9.

    Instead of padding that right side though, wouldn't margin make more sense? Like this - <div style="width: 250px; float:left; margin: -5px 15px 0 0;"><script type="text/javascript">
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    EnnisP (02-19-2011)

  • #3
    New Coder
    Join Date
    Feb 2009
    Location
    South Africa and USA
    Posts
    63
    Thanks
    30
    Thanked 0 Times in 0 Posts
    I tried that and it worked fine. I also figured out what my original problem was. I enlarged the text and the border showed.

    Thanks for the tip.


  •  

    Tags for this Thread

    Posting Permissions

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