1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to use the <div></div>?????

Discussion in 'CSS' started by joshril, Mar 9, 2005.

  1. #1
    I am trying to put an adsense ad on the right hand side of my home page, and I can't get it to work right?? Also, how do I insert a google toolbar in the free space in my title on the right hand side. When I use the <div></div> code it will go to the right side, but I can't get it exactly where I want it.

    Thanks!
     
    joshril, Mar 9, 2005 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Just to get you started... You can use CSS and position: absolute to position x and y coordinates exactly. You can also use tables to position things a little bit easier.

    There are a lot of wysiwyg editors out there that will write the code for you- like dreamweaver or go-live. Save a copy of an image from the adsense samples page and insert it into your page design. When you have it positioned where you want it, replace the image with your adsense code. It should show the ads in the same place.
     
    nevetS, Mar 9, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This should get you started:

    <div style="float: right; margin: 20px;">...</div>

    J.D.
     
    J.D., Mar 9, 2005 IP
  4. joshril

    joshril Guest

    Messages:
    271
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks... I appreciate it!
     
    joshril, Mar 9, 2005 IP
  5. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    or you could setup a class in your css file like

    .whatever
    {
    float: right;
    margin: 20px;
    }


    (or whatever you wanted)

    Then just call the class by using <div class="whatever"></div>
     
    jared, Mar 15, 2005 IP