SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    ********* Wizard silver trophy Cam's Avatar
    Join Date
    Aug 2002
    Location
    Burpengary, Australia
    Posts
    4,495
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Background image - Part 2

    Hi,

    I have this class -
    PHP Code:
    th.bubble
    {
        
    colorwhite;
        
    background-imageurl(images/thBubble.jpg);

    but what I'm looking for it how to stretch the image across the width of tha table cell. The images is 1007 pixels wide so it's not that the image is too small.

    Any ideas??

    Thanks

  2. #2
    SitePoint Enthusiast Option1's Avatar
    Join Date
    Nov 2002
    Location
    Up the back of the bus
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your image is 1007px across, how wide is your th? Cause that sounds plenty wide enough.

    However, if the image isn't wide enough then, to the best of my knowledge, all you can do is choose whether to repeat the background image or not with background-repeat: and the choices are repeat-x, repeat-y, repeat or no-repeat.
    th.bubble {
    color: white;
    background-image: url(images/thBubble.jpg);
    background-repeat: repeat-x;
    }
    So in other words if you need your image to stretch further you're probably going to have to resize it in a PS (or whatever image editor you use).

    Neil


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
  •