Probably something simple, but need help anyway.

Discussion in 'HTML & Website Design' started by Bojangles, Sep 17, 2007.

  1. #1
    Okay. My website is www.talkhorror.com. As you can see there is a main logo. Off to the right of that is another image which is in the design as a background image. Somehow I cannot set that thing to no repeat. I just kind of want it to be a stand alone image. Heres the code I'm looking at.

                  <tr>
                  	<td align="$stylevar[center]" style="background-image:url($stylevar[imgdir_misc]/dark_yellow/black_logo_x.gif)"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                  	<td align="$stylevar[center]" style="background-image:url($stylevar[imgdir_misc]/dark_yellow/black_logo_x.gif)">
                  		&nbsp;
                  	</td>
                  </tr>
    Code (markup):
    One if for the main logo and one is for the BG image. Can someone help please?
     
    Bojangles, Sep 17, 2007 IP
  2. simonpeterong

    simonpeterong Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can do 2 things:

    first, make the images as one, so that you won't have a problem about repeating.

    second, declare the css background to:
    
    background-repeat: no-repeat;
    
    Code (markup):
     
    simonpeterong, Sep 17, 2007 IP
  3. Bojangles

    Bojangles Active Member

    Messages:
    347
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    So how should the code look once I have done that?
     
    Bojangles, Sep 17, 2007 IP
  4. Bojangles

    Bojangles Active Member

    Messages:
    347
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    As in exactly where would I put this: background-repeat: no-repeat;

    I tried and it didn't work, maybe im placing it wrong.
     
    Bojangles, Sep 17, 2007 IP
  5. simonpeterong

    simonpeterong Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry but I'm lost in your codes... where exactly is the image on the header located? I mean on your HTML and on the stylesheet...
     
    simonpeterong, Sep 19, 2007 IP
  6. Bojangles

    Bojangles Active Member

    Messages:
    347
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    Its somehow in the code I posted.
     
    Bojangles, Sep 19, 2007 IP