Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Location
    Lahore, Pakistan
    Posts
    150
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Background is repeated

    I am facing a problem in PHP and HTML. I use a background Image but i want that when page is extent then BACKGROUND will not repeat.

    I use STYLE "background-repeat:no-repeat" for this, but it wont work

    Code:
    
    <table border=2 width=100% cellspacing=0 cellpadding=2 background="images/main-back-other-pages.gif">
             <tr>
             <td valign=top width='".$cw."%' align=center class=\"style1\">         
             
             <tr>
             <td class=labels valign=top colspan=2 align=left></td>
             </tr>
             
             <tr>      
             <td width=75% class=style1 valign=top align=left style="background-repeat:no-repeat">
             
             
             <font class=labels>Category: </font><br>         
             <font class=labels>Viewed: </font><br>   
             Sold:<br>
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>         
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>         
    <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>         
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>      
    <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>         
             <font class=labels>Video Length:</font><br>
             <font class=labels>Video Size: </font><br>
             <font class=labels>Uploaded on:</font>                           
             
             </td>   
             </tr>
             </td>
             </tr>
    
             </table>

    Please Help in this manner

  • #2
    Regular Coder Tyree's Avatar
    Join Date
    Sep 2003
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts
    While this is technically a CSS question...

    style="background-repeat:no-repeat;"

    Don't forget the semi-colon at the end of style declarations.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •