Help: coding my banner (HTML)

Discussion in 'HTML & Website Design' started by snoopgst, Feb 25, 2007.

  1. #1
    I want to create a banner using two images.

    1. Here is the main banner, I want it to start on the left of the screen. http://www.topcarnews.com/banner/banner.jpg

    2. and this is the image that I want to repeat 100% at the end of the banner.
    http://www.topcarnews.com/banner/bannerbk.jpg


    I tried doing it myself but it looks like crap.
    http://www.topcarnews.com

    My code:

    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#000000"><div align="left"><img src="/banner/banner.jpg" width="948" height="177"><td background="/banner/bannerbk.jpg"><div align="left"><img src="/banner/bannerbk.jpg" width="25" height="177"></div></td></div></td>
      </tr>
    </table>  
    
    HTML:
     
    snoopgst, Feb 25, 2007 IP
  2. unitedrokz

    unitedrokz Peon

    Messages:
    86
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the reason it looks bad is because the repeating image you want to use is not tileable/seamless.

    basically without altering that image - you are always going to see the edges of each one. you need to change it so that when you copy and paste two or more together, you cant tell that they are seperate.

    so in summing up - its not a coding problem you have, but an image one
     
    unitedrokz, Feb 25, 2007 IP
  3. Bogo

    Bogo Guest

    Messages:
    139
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep. There's no easy way to fix it... I'd just extend the image out as much as possible without tiling.
     
    Bogo, Feb 25, 2007 IP
  4. scoobywow

    scoobywow Guest

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Not entirely understand exactly what you need, but you could try this:

     <table width="100%" border="0" cellspacing="0" cellpadding="0">  
      <tr>    
        <td bgcolor="#000000" valign="left">
           <img src="http://www.topcarnews.com/banner/banner.jpg">   
        </td>
        <td bgcolor="#000000">
           <img src="http://www.topcarnews.com/banner/bannerbk.jpg">
        </td>  
      </tr>
     </table>
    Code (markup):
     
    scoobywow, Feb 26, 2007 IP
  5. Cipixxx

    Cipixxx Well-Known Member

    Messages:
    754
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    #5
    i wouldn't use repeat.I woul use tool "clone samp" from photoshop.Easy
     
    Cipixxx, Mar 2, 2007 IP