SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    No repeating background image

    Code:
    <table>
    
    <tr>
    
    <td background='myImage.gif'>
    
    myText
    
    </td>
    
    </tr>
    
    </table>
    I like to make the code above display the background image only once.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Use CSS and use the 'background-repeat' declaration.

    Code:
    .bgimage
    {
        background-image: url(myImage.gif);
        background-repeat: no-repeat;
    }
    
    <td class="bgimage">
    
    myText
    
    </td>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •