SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table with one border line between each row instead of two

    When I create a table with border=1 and bordercolor="black" I get a set of rectangles. So there are 2 lines between each row. Is there anyway to get a true grid with only one line between each row, which also intersects the vertical lines? I can't use ASP.NET. It's not supported in Windows CE 5.0.

  2. #2
    SitePoint Zealot milenko1054's Avatar
    Join Date
    Jan 2004
    Location
    Ohio
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try setting the cellspacing property to 0 -
    Code:
    <table cellspacing="0">


  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <table>
    Code:
    table { border-collapse:collapse; }
    th, td { border:1px solid black; }
    Simon Pieters


Bookmarks

Posting Permissions

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