Resize an image's height in a table according to content
Posted: Fri Mar 13, 2009 12:17 am
Hi everyone, this looks like a great forum for getting some assistance on my newly started adventures in PHP... look forward to talking with you all...
I have a problem I'm hoping PHP can fix:
I have a script that will put a block of text into a table cell from a database. And I am using three image files as a border on the top, right and bottom of the table cell that has the text. The width of the table is always the same, so the images for the top and bottom never have to change. But the image that runs along the right of the text has to stretch so it's the same height as the cell with the text (it's just a line with a drop-shadow, so it doesn't distort when stretched).
My question is this: is there a way using PHP to make the right-side image automatically match the height of the text cell, when the height of the text cell varies?
If anyone can help, I'd appreciate it a ton. Maybe tables isn't the right way to do this?
Cheers
I have a problem I'm hoping PHP can fix:
I have a script that will put a block of text into a table cell from a database. And I am using three image files as a border on the top, right and bottom of the table cell that has the text. The width of the table is always the same, so the images for the top and bottom never have to change. But the image that runs along the right of the text has to stretch so it's the same height as the cell with the text (it's just a line with a drop-shadow, so it doesn't distort when stretched).
My question is this: is there a way using PHP to make the right-side image automatically match the height of the text cell, when the height of the text cell varies?
If anyone can help, I'd appreciate it a ton. Maybe tables isn't the right way to do this?
Cheers