phpgoal Posted May 23, 2013 Share Posted May 23, 2013 Hello, I am having issue with a td background image. How can i make the image larger without repeating the image? if i change the height/width number, it gets bigger but image is repeated. Please help. <table > <tr> <td colspan = "6" background="desktopbig.jpg" width = "1100" height = "707" background-repeat:no-repeat; valign = "top"> fafsafsaff</td> </tr> </table> Thanks. Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/ Share on other sites More sharing options...
buzzycoder Posted May 23, 2013 Share Posted May 23, 2013 I am not familiar with CSS.But below code might help you: CSS Code : .tdcss { background-image: url("desktopbig.jpg"); background-repeat: no-repeat; background-position: left center; } HTML Table Code : <table> <tr> <td colspan = "6" valign = "top" class="tdcss"> fafsafsaff </td> </tr> </table> Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/#findComment-1431931 Share on other sites More sharing options...
phpgoal Posted May 23, 2013 Author Share Posted May 23, 2013 Thanks. It worked. Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/#findComment-1431941 Share on other sites More sharing options...
buzzycoder Posted May 23, 2013 Share Posted May 23, 2013 Great,I am glad it helps you ! You can close the question. Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/#findComment-1431946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.