Adsense in Forum Background Issues

Discussion in 'HTML & Website Design' started by MelogKnaj, Jun 5, 2008.

  1. #1
    I am trying to blend my adsense ads into the background of my simple machine forum. The issue is I can't figure out how to change the color of the extra space on both sides of the ad. Here is an example of what I am talking about: http://forums.cod4source.com/index.php?topic=5.msg7#new, basically how do I change the black color around the ad so that it blends in. I can post the relevant code if needed, thanks in advance for the help.
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    MelogKnaj, Jun 5, 2008 IP
  2. eddiemoth

    eddiemoth Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    When you create your Adsen code you can change the color of the background i.e. google_color_bg = "EEEEEE"; to the same color code of your temaple background.
     
  3. MelogKnaj

    MelogKnaj Guest

    Best Answers:
    0
    #3
    I want the adsense background to stay it's current color so it blends. What I do want to change is the forum background to the current color of the adsense background.
     
  4. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #4
    
    <div style="background-color: #393839;">
        // adsense code here
    </div>
    
    Code (markup):
     
    q7m, Jun 5, 2008 Set Best Answer IP
  5. eddiemoth

    eddiemoth Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5

    Then you would change the CSS of your site template. But if I were you I would change the Adsense color to match the template.
     
  6. MelogKnaj

    MelogKnaj Guest

    Best Answers:
    0
    #6
    Thank you very much this worked great.
     
  7. Simply Me

    Simply Me Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I also see one of your banners near the top of the page that does not blend at all. I recommend changing either the background color of the forums or the background color of your first ad block. If you want to change the background color of your forums, go into your style sheet. look for
    replace with