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 for two items on the same line.

Discussion in 'HTML & Website Design' started by 24788, Jan 19, 2010.

  1. #1
    On fitnessthatsfun I'm trying to put the search box on the right and the ads on the left, but they have to be on the same line.

    HTML does for this? Does it matter if I'm using Javascript when doing this because both items are in javascript.

    Instead of:
    Advertisement
    Search Box

    I'd like:
    Advertisement - Search Box (on the same line not two lines)

    Thank you.
     
    24788, Jan 19, 2010 IP
  2. johagulo

    johagulo Peon

    Messages:
    879
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have to use <span>
     
    johagulo, Jan 19, 2010 IP
  3. nivedita011

    nivedita011 Peon

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try using table for it
    <table>
    <tr>
    <td>Your ads</td>
    <td>search box</td>
    </tr>
    </table>
     
    nivedita011, Jan 19, 2010 IP
  4. digital29

    digital29 Peon

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can use span as the people above said..but you can use div too
     
    digital29, Jan 19, 2010 IP
  5. awhgemma

    awhgemma Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You need to research css using DIV tags. Always try your best to avoid tables where possible ( which means never use tables :p )
     
    awhgemma, Jan 19, 2010 IP
  6. sp2h

    sp2h Peon

    Messages:
    189
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #6
    UL > LI is the best solution.
     
    sp2h, Jan 20, 2010 IP