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. Advertising

  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. Advertising

  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. Advertising

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. Replies:
    0
    Views:
    530
  2. UJ
    Replies:
    8
    Views:
    61,283
  3. Academia

    How to make a table draw lines between cells

    Academia, Dec 26, 2007, in forum: ASP .Net Building Controls
    Replies:
    4
    Views:
    1,146
    Academia
    Jan 1, 2008
  4. Joel Finkel

    Cells[].Text or Cells[].Controls[0]

    Joel Finkel, Sep 1, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    311
    Joel Finkel
    Sep 1, 2003
  5. PerlFAQ Server
    Replies:
    0
    Views:
    166
    PerlFAQ Server
    Jan 14, 2011
Loading...

Share This Page