Strange table border colours

Discussion in 'HTML' started by Bonnett, Nov 23, 2004.

  1. Bonnett

    Bonnett Guest

    I've noticed that in Firefox/Netscape 6, if i specify the style:
    ..strange{ color: #F00; background: #FFF; }
    and apply it to a table cell:
    <td class="strange">Red Line on inside</td>
    then I get a strange red line on the inside of the border.
    If I use:
    <td><span class="strange">Red Line on inside</span></td>
    this doesn't appear, but IMO its using unecessary markup.

    A test page can been seen at http://www.pete-b.co.uk/strangeTable.htm

    I'm wondering, am I doing something wrong in specifying a font color to
    a table cell.

    This outline only appears in Firefox/Netscape (I have tested it on
    FF1.0 and NN6 along with IE6).

    Bonnett
    Bonnett, Nov 23, 2004
    #1
    1. Advertising

  2. Bonnett

    Steve Pugh Guest

    On 23 Nov 2004 04:16:44 -0800, Bonnett <> wrote:

    > I've noticed that in Firefox/Netscape 6, if i specify the style:
    > .strange{ color: #F00; background: #FFF; }
    > and apply it to a table cell:
    > <td class="strange">Red Line on inside</td>
    > then I get a strange red line on the inside of the border.
    > If I use:
    > <td><span class="strange">Red Line on inside</span></td>
    > this doesn't appear, but IMO its using unecessary markup.
    >
    > A test page can been seen at http://www.pete-b.co.uk/strangeTable.htm
    >
    > I'm wondering, am I doing something wrong in specifying a font color to
    > a table cell.


    Your table cells have a border. But you haven't specified a border-color
    for the border so the browser uses the color of the element as the
    border-color.

    > This outline only appears in Firefox/Netscape (I have tested it on
    > FF1.0 and NN6 along with IE6).


    No it appears in Opera as well.

    Steve
    Steve Pugh, Nov 23, 2004
    #2
    1. Advertising

  3. Bonnett

    Mitja Guest

    On Tue, 23 Nov 2004 12:44:18 -0000, Steve Pugh <> wrote:

    > On 23 Nov 2004 04:16:44 -0800, Bonnett <> wrote:
    >
    >> A test page can been seen at http://www.pete-b.co.uk/strangeTable.htm
    >> This outline only appears in Firefox/Netscape (I have tested it on
    >> FF1.0 and NN6 along with IE6).

    >
    > No it appears in Opera as well.


    Opera 7.54, no red border here.


    --
    Mitja
    Mitja, Nov 23, 2004
    #3
  4. Bonnett

    Steve Pugh Guest

    On Tue, 23 Nov 2004 14:53:51 +0100, Mitja <> wrote:

    > On Tue, 23 Nov 2004 12:44:18 -0000, Steve Pugh <> wrote:
    >
    >> On 23 Nov 2004 04:16:44 -0800, Bonnett <> wrote:
    >>
    >>> A test page can been seen at http://www.pete-b.co.uk/strangeTable.htm
    >>> This outline only appears in Firefox/Netscape (I have tested it on
    >>> FF1.0 and NN6 along with IE6).

    >>
    >> No it appears in Opera as well.

    >
    > Opera 7.54, no red border here.


    Whoops. My eyes must have been playing tricks on me.

    Steve
    Steve Pugh, Nov 23, 2004
    #4
  5. Bonnett

    Toby Inkster Guest

    Steve Pugh wrote:

    > No it appears in Opera as well.


    It doesn't, but it you replace the HTML "border=1" with the equivalent CSS:

    table { border: 1px outset; }
    td { border: 1px inset; }

    then it does.

    It seems Opera has different rendering paths for table "border=1" and CSS
    borders.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
    Toby Inkster, Nov 24, 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. Amirallia

    How Do I Print Table Cell Colours?

    Amirallia, Jan 27, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    502
    teknohippy
    Jan 27, 2005
  2. phl
    Replies:
    1
    Views:
    4,322
    Martin Jay
    Jun 8, 2006
  3. mark
    Replies:
    4
    Views:
    307
  4. Brian Robertson

    Table colours

    Brian Robertson, Nov 9, 2007, in forum: HTML
    Replies:
    2
    Views:
    331
    Jukka K. Korpela
    Nov 9, 2007
  5. Jim S

    Htperlink border colours

    Jim S, May 6, 2008, in forum: HTML
    Replies:
    3
    Views:
    364
    still just me
    May 8, 2008
Loading...

Share This Page