Jump to content

td background image


Go to solution Solved by buzzycoder,

Recommended Posts

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

  • Solution

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.