Two banners on one line?

Discussion in 'HTML & Website Design' started by Computerized, Oct 10, 2006.

  1. #1
    I'm trying to put two banners on one line, by aligning one of them to the left and one of them to the right, but every time I do that one of the banners end up at the bottom of the other.

    Can someone help me out? Any code suggestions?

    Thanks
     
    Computerized, Oct 10, 2006 IP
  2. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try with css this way:

    
    <div style="min-width:99%; max-width:99%; width:100%;">
    <span style="float:left;">
    BANNER LEFT HERE
    </span>
    <span style="float:right;">
    BANNER RIGHT HERE
    </span>
    </div>
    
    Code (markup):
     
    Pat Gael, Oct 10, 2006 IP
  3. Computerized

    Computerized Well-Known Member

    Messages:
    3,356
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    140
    #3
    That didn't exactly work. One of them became lower than the other and it messed up my page layout. =\
     
    Computerized, Oct 10, 2006 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Insert a table with two colums!

    Make the table actual size fit (no size specification).

    Peace,
     
    Barti1987, Oct 10, 2006 IP
  5. fordP

    fordP Peon

    Messages:
    548
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, a table with 2 columns. vertically center both, then align right on left column, align right on right column.
     
    fordP, Oct 10, 2006 IP
  6. knightyme

    knightyme Peon

    Messages:
    59
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree with the two tables. Since I hardcode everything anyway, here is what the code would look like. Re-size to fit your needs.

    <div align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="45%">
    <! -- INSERT BANNER HERE -- >
    </td>
    <td width="5%"></td>
    <td width="45%">
    <? -- INSERT BANNER HERE -- >
    </td>
    </tr>
    </table>
    </div>


    Hope it helps! :)
     
    knightyme, Oct 10, 2006 IP
  7. Computerized

    Computerized Well-Known Member

    Messages:
    3,356
    Likes Received:
    107
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Yeah, that helps a lot. Thanks guys :)
     
    Computerized, Oct 10, 2006 IP