#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    61
    Rep Power
    12

    how to use class in css


    hello guys
    i put this code in my page
    PHP Code:
    <head >

    <
    style>
      <!--
    td.td1
    {
        
    background-imageurl(../../image/Uinfor_bg2.gif);
            
    widthauto;
                    
    text-aligncenter;
        }
    td.td2
    {
        
    background-imageurl(../../image/Uinfor_bg.gif);
            
    widthauto;
                    
    text-aligncenter;
        }
    .
    TDA
    {
        
    background-imageurl(../../image/Cbg2.gif);
            
    width20px;
            
    text-aligncenter;
        }
    TD.TDB
    {
        
    background-imageurl(../../image/Cbg.gif);
        
    width20px;
        
    text-aligncenter;
        }


        -->

    </
    style>
      <
    title>My site</title>
    </
    head
    and when i use it .... it dosnt work.....

    how can i use it
    i try to do this
    PHP Code:
    <body>


    <
    tr vlaign='top'><td class='TDB'></td><td width='*'>
    <
    table width='100%' vlaign='top'>
    <
    tr vlaign='top' width='100%'><td align='center'><a href='index.php?id=1'>a1</a></td>
    <
    td align='center'><a href='index.php?id=8'>a2</a></td>
    <
    td align='center'><a href='index.php?id=9'>a3</a></td>

    </
    tr>
    <
    tr width='100%'>
    <
    td align='center'><a href='index.php?id=10'>b1</a></td>
    <
    td align='center'><a href='index.php?id=11'>b2</a></td>
    </
    tr>
    </
    table>
    </
    td>
    <
    td class="TDA"></td></tr>
    <
    tr vlaign='top'><td ><img border='0' src=image/RDC.gif></td><td class='td1'></td><td ><img border='0' src=image/LDC.gif></td></tr></table><br>


    </
    body
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    61
    Rep Power
    12
    i found that the problem was in the background-image

    how can i load an background image in each <td>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    61
    Rep Power
    12
    hy guys its work there some mistak in the image url

IMN logo majestic logo threadwatch logo seochat tools logo