HTML: Table Borders

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Smith

    HTML: Table Borders

    How do I get rid of a table border?

    This is more a HTML question but I recon some one here would know.

    I have used a table in the design of my page, I have a top logo, but it
    has a line that heads down the side of the page.

    So I have cut up the two and got my title across the top and a cell on
    the side with this line in it. I have set table border=0, but I still
    have a line (the color of the background of the table) about a pixel
    high between the top pic and the side. Is there a way to get rid of this?

    I have turn on the background colours on for each cell (to test if it is
    a cell or a border) and there still seems to be this line inbetween so
    it must be a border. Is there away to get rid of it?

    I have checked my spelling on Border=0 by useing 0 and 1 and it works.

    James.
  • Urs Weder

    #2
    Re: HTML: Table Borders

    James Smith wrote:[color=blue]
    > How do I get rid of a table border?
    >
    > This is more a HTML question but I recon some one here would know.
    >
    > I have used a table in the design of my page, I have a top logo, but it
    > has a line that heads down the side of the page.
    >
    > So I have cut up the two and got my title across the top and a cell on
    > the side with this line in it. I have set table border=0, but I still
    > have a line (the color of the background of the table) about a pixel
    > high between the top pic and the side. Is there a way to get rid of this?
    >
    > I have turn on the background colours on for each cell (to test if it is
    > a cell or a border) and there still seems to be this line inbetween so
    > it must be a border. Is there away to get rid of it?
    >
    > I have checked my spelling on Border=0 by useing 0 and 1 and it works.
    >
    > James.[/color]

    <TABLE ... BORDER=0 CELLPADDING=0 CELLSPACING=0> works

    Greetings, Urs

    Comment

    • Matthias Esken

      #3
      Re: HTML: Table Borders

      James Smith schrieb:
      [color=blue]
      > How do I get rid of a table border?[/color]

      With CSS:

      table { border: none; }

      Matthias

      Comment

      • Nikolai Chuvakhin

        #4
        Re: HTML: Table Borders

        James Smith <jncsmith@optus net.com.au> wrote in message
        news:<40e142f8$ 0$25463$afc38c8 7@news.optusnet .com.au>...[color=blue]
        >
        > How do I get rid of a table border?[/color]

        <table border="0">
        [color=blue]
        > I have used a table in the design of my page, I have a top logo, but it
        > has a line that heads down the side of the page.
        >
        > So I have cut up the two and got my title across the top and a cell on
        > the side with this line in it. I have set table border=0, but I still
        > have a line (the color of the background of the table) about a pixel
        > high between the top pic and the side. Is there a way to get rid of this?[/color]

        <table border="0" cellspacing="0" cellpadding="0" >

        Cheers,
        NC

        Comment

        • James Smith

          #5
          Re: HTML: Table Borders

          Thanks for your help, it was the cell spacing and padding. I thought I
          had tried it, obviously not in the right place.




          James Smith wrote:
          [color=blue]
          > How do I get rid of a table border?
          >
          > This is more a HTML question but I recon some one here would know.
          >
          > I have used a table in the design of my page, I have a top logo, but
          > it has a line that heads down the side of the page.
          >
          > So I have cut up the two and got my title across the top and a cell on
          > the side with this line in it. I have set table border=0, but I still
          > have a line (the color of the background of the table) about a pixel
          > high between the top pic and the side. Is there a way to get rid of this?
          >
          > I have turn on the background colours on for each cell (to test if it
          > is a cell or a border) and there still seems to be this line inbetween
          > so it must be a border. Is there away to get rid of it?
          >
          > I have checked my spelling on Border=0 by useing 0 and 1 and it works.
          >
          > James.[/color]

          Comment

          • Larry Jaques

            #6
            Re: HTML: Table Borders

            On Wed, 30 Jun 2004 21:02:01 +1000, James Smith
            <jncsmith@optus net.com.au> calmly ranted:
            [color=blue]
            >Thanks for your help, it was the cell spacing and padding. I thought I
            >had tried it, obviously not in the right place.[/color]

            James, I highly recommend Jennifer Niederst's "Web Design in a
            Nutshell". It's currently in the second edition and is packed
            full of absolutely necessary info.

            It's much easier to program with PHP when you have the basics of
            HTML down pat. (This from a 4-year PHP newbie.)


            --
            If you turn the United States on its side,
            everything loose will fall to California.
            --Frank Lloyd Wright

            Comment

            Working...