graham01 Posted February 2, 2008 Share Posted February 2, 2008 is it posible to set a background image as a table and have it stretch to fir the whole table depending on the size? thanks Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/ Share on other sites More sharing options...
Stooney Posted February 2, 2008 Share Posted February 2, 2008 ask in the css forum.. http://www.phpfreaks.com/forums/index.php/board,5.0.html Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-456391 Share on other sites More sharing options...
pocobueno1388 Posted February 2, 2008 Share Posted February 2, 2008 Yes it is, but this has nothing to do with PHP, you would use CSS. <style type="text/css"> .bg { background-image: url(background.jpg); background-repeat: repeat-x; ## Or you could set it to repeat "y" to go the other direction } </style> Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-456394 Share on other sites More sharing options...
graham01 Posted February 3, 2008 Author Share Posted February 3, 2008 this just makes it repeat though, i need 1 image to stretch, the image isnt just a single color. thanks Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-456651 Share on other sites More sharing options...
haku Posted February 3, 2008 Share Posted February 3, 2008 You probably shouldn't be using tables anyways. If the information is information that is tabular in nature, then its ok. But if you are doing it to layout your site, you are using tables wrong and should look into some CSS tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-456671 Share on other sites More sharing options...
graham01 Posted February 3, 2008 Author Share Posted February 3, 2008 $result = mysql_query("SELECT review.date,review.time,customer.firstname,customer.surname,review.review FROM customer,review where customer.customerid=review.customerid order by review.date,review.time DESC"); $num_rows = mysql_num_rows($result); echo "There are $num_rows reviews.<P>"; while ($get_info = mysql_fetch_array($result)){ echo "<table height=120 width= 900 border=1 class=review><tr> <td width=200><font face=arial size=2>$get_info[0] at $get_info[1]</font></td> <td width=100><font face=arial size=2>$get_info[2] $get_info[3]</font></td> <td width=500><font face=arial size=2>$get_info[4]</font></td> </tr></table>"; } its basically for displaying the reviews on a website for a business, but i want them to be displayed on a picture of a scroll with the size of the scroll depending on the amount that is displayed thanks Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-456973 Share on other sites More sharing options...
graham01 Posted February 11, 2008 Author Share Posted February 11, 2008 please help, there must be a way to do this. thanks Quote Link to comment https://forums.phpfreaks.com/topic/89112-table-background-stretching/#findComment-464192 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.