Results 1 to 7 of 7

Thread: HTML Tables - Empty Cells

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    HTML Tables - Empty Cells

    I get no border around cells in an HTML table that either have a null value or an empty string. Is there anyway I can always have a border around cells because it makes the table look really crap!
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: HTML Tables - Empty Cells

    Ensure there is always content. Either check for NULL or an empty string and replace with   or put a   after every value so when there is a NULL or empty string the cell isn't completely empty.

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: HTML Tables - Empty Cells

    Thanks, but it seems a shame that I have to put content into every cell just to get it to display consistantly...
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: HTML Tables - Empty Cells

    Hey, standards are standards.

  5. #5
    Member
    Join Date
    Sep 2004
    Posts
    45

    Re: HTML Tables - Empty Cells

    If you put a   into the HTML it will not show in the page that is presented to the user so it will look like an empty cell.

    What Editor are you using to create your page? Most will put the   automatically for you if you leave the cells blank.

    You may also want to consider CSS because you can get the border effect that way and it will look the same in alternate browsers. I could be wrong but I think I.E. is the only browser that will show colored borders in tables using plain HTML. The others will show it as an ugly gray.

  6. #6

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Re: HTML Tables - Empty Cells

    I am using VB.NET to create an ASP.NET project. The HTML table is being used to format a DataRepeater control.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: HTML Tables - Empty Cells

    Dj4's solution still applies.

Posting Permissions

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



Click Here to Expand Forum to Full Width