Help : How do I make the background image stretch to fit the table cell?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TAM

    #1

    Help : How do I make the background image stretch to fit the table cell?

    Hi,

    I am using a table with height and width as 100%. I wish to use a
    background image of size W 62x H 314 pixels for one table cell.

    How do I make the background image stretch to fit the table cell? I do
    not want the image to repeat. It should only be a single image
    stretched as per size of the table.

    Thanks
  • Spartanicus

    #2
    Re: Help : How do I make the background image stretch to fit the table cell?

    green2004@canad a.com (TAM) wrote:
    [color=blue]
    >I am using a table with height and width as 100%. I wish to use a
    >background image of size W 62x H 314 pixels for one table cell.
    >
    >How do I make the background image stretch to fit the table cell?[/color]

    Not possible, you could try using a foreground image and setting that to
    100%, but expect problems.

    --
    Spartanicus

    Comment

    • nontitle
      New Member
      • Jul 2006
      • 1

      #3
      You can use CSS. I'll explain.
      First, you will have to make [HTML]<style></style>[/HTML] tags at the top.
      inside these tags, you will put:
      Code:
      .whatever {background-image: url('your/image.png'); }
      you can change whatever and your/image.png to whatever you want.
      then what you have to do is add class to your td tag, like this.
      [HTML]<td width=245 height=45 class=whatever> </td>[/HTML]
      (make sure you remove the background thing from the td tag as well)
      and there you go. Even I've learned something today.

      Comment

      Working...