Lines between table cells

Discussion in 'HTML' started by Björn Lange, Apr 1, 2004.

  1. Björn Lange

    Björn Lange Guest

    Hallo NG,

    On a flat-screen-monitor I see thin grey lines between table cells, but I do
    not see them on tube-monitor?

    Can the type of monitor be the reason, or are there other possible reasons?

    When I code "<table border = 1 bordercolor = #888888>...</table>", only the
    cells with are not empty are surrounden by lines.

    May anybody please help me?


    Björn Lange
     
    Björn Lange, Apr 1, 2004
    #1
    1. Advertisements

  2. Björn Lange

    Steve Pugh Guest

    "Björn Lange" <> wrote:

    >On a flat-screen-monitor I see thin grey lines between table cells, but I do
    >not see them on tube-monitor?


    Are you using the same version of the same browser on the same
    operating system with the two monitors?

    >Can the type of monitor be the reason, or are there other possible reasons?


    If the grey is very close to the background colour it's possible that
    you aren't able to make it out on one display. Are both monitors in
    the same lighting conditions?

    >When I code "<table border = 1 bordercolor = #888888>...</table>",


    bordercolor is not a valid attribute of table. It is not in the HTML
    spec and only some browsers support it. It can not be relied on. Use
    CSS instead.

    Any attribute value that contains the character # must be quoted. See
    http://www.w3.org/TR/html401/intro/sgmltut.html#idx-attribute-6 for
    the rules on which attributes must be quoted, or take the simple way
    out and quote all attribute values.

    >only the cells with are not empty are surrounden by lines.


    This is normal and in HTML the only way around it is to put something
    (e.g. &nbsp;) into the empty cells. In CSS you can use empty-cells:
    show;

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Apr 1, 2004
    #2
    1. Advertisements

  3. Björn Lange

    Sid Ismail Guest

    On Thu, 1 Apr 2004 12:12:45 +0200, "Björn Lange" <>
    wrote:


    :
    : When I code "<table border = 1 bordercolor = #888888>...</table>", only the
    : cells with are not empty are surrounden by lines.


    Try CSS equivalent, and see ?

    In HEAD
    <style type="text/css">
    <!--
    table {border:3px ridge #888;}
    td {border:1px solid #888;}
    -->
    </style>

    and in BODY:
    just <table>

    Please report back?

    Sid
     
    Sid Ismail, Apr 1, 2004
    #3
  4. Björn Lange

    Björn Lange Guest

    Dear Steve,

    Thank You for the answer.
    I have already found out,
    that I have to use empty-cells:show.

    CU

    Björn Lange
     
    Björn Lange, Apr 1, 2004
    #4
  5. Hi!

    > On a flat-screen-monitor I see thin grey lines between table cells,

    but I do
    > not see them on tube-monitor?
    >
    > Can the type of monitor be the reason, or are there other possible

    reasons?
    =)
    I guess, it's browser compatibility problem :)

    > When I code "<table border = 1 bordercolor = #888888>...</table>",

    only the
    > cells with are not empty are surrounden by lines.
    >
    > May anybody please help me?


    You can put into your emtpy cells something like &nbsp; or <img
    src="/img/spacer.gif" alt="" title="" width="1" height="1" />.
    Another way - you can use CSS:

    table {empty-cells: show}

    --
    Adios!
     
    Dmitry Pljonkin, Apr 2, 2004
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jcnews at earthlink.net

    PROBLEM: Images have spaces between table cells

    jcnews at earthlink.net, Nov 25, 2004, in forum: HTML
    Replies:
    3
    Views:
    1,449
    Duende
    Nov 25, 2004
  2. Jan Aagaard
    Replies:
    1
    Views:
    845
    windandwaves
    Aug 25, 2005
  3. Edward
    Replies:
    2
    Views:
    1,919
    Edward
    Sep 7, 2005
  4. UJ
    Replies:
    8
    Views:
    63,491
  5. Bundy
    Replies:
    3
    Views:
    58,881
    Bundy
    Aug 16, 2006
  6. Academia

    How to make a table draw lines between cells

    Academia, Dec 26, 2007, in forum: ASP .Net Building Controls
    Replies:
    4
    Views:
    1,319
    Academia
    Jan 1, 2008
  7. PerlFAQ Server
    Replies:
    0
    Views:
    274
    PerlFAQ Server
    Jan 14, 2011
  8. PerlFAQ Server
    Replies:
    0
    Views:
    266
    PerlFAQ Server
    Apr 19, 2011
Loading...