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

    Join Date
    Jul 2003
    Location
    Pakistan
    Posts
    112
    Rep Power
    11

    ....list-style using css not working....


    Hello

    HRU, I am using list-style with css below y can see code, but that is not adding bullet please let me know how I can fixed that problem as soon as possible.

    Regards
    Faisal



    <html>
    <head>

    <style type="text/css">
    .inside1
    {
    list-style-position: inside
    }
    </style>

    </head>

    <body>

    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td class="inside1">Contact Us<br>
    About Us<br>
    Services </td>
    </tr>
    </table>

    </body>
    </html>
  2. #2
  3. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    list-style only works with list elements
    you are trying to use it on a table.

    Code:
    <html>
    <head>
    
    <style type="text/css">
    .inside1
    {
    list-style-position: inside
    }
    </style>
    
    </head>
    
    <body>
    
    <ul class="inside1">
    	<li>Contact Us</li>
    	<li>About Us</li>
    	<li>Services </li>
    </ul>
    
    
    </body>
    </html>

IMN logo majestic logo threadwatch logo seochat tools logo