Adsense Placement

Discussion in 'CSS' started by powerlifer, Feb 18, 2010.

  1. #1
    Hey im struggling a fair bit here guys, ive looked but cant find what file or even div to edit to get my adsense opposite the logo.

    http://www.vegankingdom.co.uk/recipes/

    any help is appreciated.
     
    powerlifer, Feb 18, 2010 IP
  2. jimmy4feb

    jimmy4feb Peon

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you need to place ad something like this

    http://www.gamehouse.com/online-games

    You can do this by using so many ways...

    I saw that you are using logo into #header DIV (your logo is too wide & ad block may go into next line)

    Align you #Header DIV tag to left by adding this to DIV in css

    display:block;
    float:left;

    Then create a new DIV for Ad & also align it to left by using

    #adDiv
    {
    display:block;
    width:486px; /*the width of your ad block, it should not exceed than your page width */
    height:90px; /*the height of your ad block*/
    float:left;
    margin-left:5px; /*margin between your logo & ad*/
    }

    In HTML immediately after this coding:
    
    <div id="header">
    <img title="Vegan Kingdom Recipes: Delicious FREE recipes for your enjoyment! - Powered by Maian Recipe v2.0" alt="Vegan Kingdom Recipes: Delicious FREE recipes for your enjoyment! - Powered by Maian Recipe v2.0" src="templates/images/header.gif"/>
    </div>
    
    HTML:
    Place this code:
    
    <div id="adDiv">
          Your ad sense code will go here
    </div>
    
    HTML:
    In this way you can place ad in your header.

    Thanks,

    Jimmy
     
    Last edited: Feb 18, 2010
    jimmy4feb, Feb 18, 2010 IP
  3. masud7827

    masud7827 Active Member

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    thanks for the code jimmy4feb it's really help me.. thanks
     
    masud7827, Feb 20, 2010 IP
  4. powerlifer

    powerlifer Active Member

    Messages:
    2,002
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #4
    will give it a shot thanks man.

    the code isnt a problem i have mass problem finding where to put it and altering the css. i hate touching code thats already done.
     
    powerlifer, Feb 21, 2010 IP
  5. travel100

    travel100 Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    the first time to check your CSS file
     
    travel100, Feb 22, 2010 IP