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. Quote Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/ Share on other sites More sharing options...
Solution buzzycoder Posted May 23, 2013 Solution 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> Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/278323-td-background-image/#findComment-1431946 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.