#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    2
    Rep Power
    0

    Question 1px table border AND columns with no CSS


    Ok I know how to get 1px table borders with no CSS with the code below:

    <table cellpadding="1" cellspacing="0" border="0" bgcolor="#000000" width="300">
    <tr>
    <td width="300">
    <table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" width="300">
    <tr>
    <td height="20"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    but how do you get the column DIVIDER to be 1px? Like if I insert a new column... the divider that splits the table in half that to be 1px wide... with no CSS of course anybody know?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Wilmslow, Cheshire
    Posts
    255
    Rep Power
    18
    Traditional way is probably to do it with a transparent spacer gif. See:

    http://www.geocities.com/dang65/bits...ableBorder.htm

    for a quick example. Should work in all browsers I think?? Also allows option to use a background image on the border cell to give a dotted line, or other effect.

IMN logo majestic logo threadwatch logo seochat tools logo