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.

HTML Code help

Discussion in 'HTML & Website Design' started by satya_love, Jul 1, 2008.

  1. #1
    Hello,

    Actually i have a Vb forum.I want to add two 300 x 250 sized ads at the footer in the center of the page.But when i place the codes simultaneously the ads come one below the other.They dont come in one line.

    What should i do ??

    What code should i add so that the 2 ads come in one line with centre allignment ??
     
    satya_love, Jul 1, 2008 IP
  2. TheOwner

    TheOwner Active Member

    Messages:
    816
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Here you go :)

    
    <p><img border="0" src="path to banner image 1" width="300" height="250">&nbsp;
    <img border="0" src="path to banner image 2" width="300" height="250"></p>
    
    Code (markup):
    Hope you do it now.
     
    TheOwner, Jul 1, 2008 IP
  3. Sensei.Design

    Sensei.Design Prominent Member

    Messages:
    3,847
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    310
    Digital Goods:
    1
    #3
    I think you'll need some css to position teh ads like you want them to
     
    Sensei.Design, Jul 1, 2008 IP
  4. satya_love

    satya_love Banned

    Messages:
    748
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually i am using adbrite and adsense ads :(
     
    satya_love, Jul 1, 2008 IP
  5. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #5
    Try this:
    
    <div style="float: left">
        // your ad code here
    </div>
    <div style="float: left; margin-left: 10px;">
        // your ad code here
    </div>
    <br style="clear: both;" />
    
    Code (markup):
    Of course, more css can be used for better positioning.
     
    q7m, Jul 1, 2008 IP
    satya_love likes this.
  6. satya_love

    satya_love Banned

    Messages:
    748
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks very much :)

    Reps added!
     
    satya_love, Jul 1, 2008 IP
  7. ankitsoldak

    ankitsoldak Well-Known Member

    Messages:
    343
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #7
    u can also use XML
     
    ankitsoldak, Jul 2, 2008 IP
  8. q7m

    q7m Well-Known Member

    Messages:
    1,178
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    1
    #8
    Please explain how.
     
    q7m, Jul 2, 2008 IP