Skip navigation
Currently Being Moderated

Partial Borders in Table displaying data

Aug 18, 2010 8:33 AM

Dreamwaever CS4, PHP

 

I have data being displayed in a table using PHP.

 

I have the border set at 2.

 

If a particular cell has data in it, the left and top borders of the cell are displayed. If there is no data in a particular cell, no borders are displayed.

 

The Table border is fine.

 

You can see this at http://franklinhaas.com/Adak/TripLists.php

 

How can I fix this?

 
Replies
  • Currently Being Moderated
    Aug 18, 2010 9:41 AM   in reply to pabirds

    Put an if statement in each field that if the field for that record is null place a non-breaking space (   ) in the field. This will make sure you table cells display correctly. IE has a habit of not displaying borders for empty cells.

     

    --
    Lawrence Carmer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in PHP and ColdFusion

     

     

    Stay updated - http://blog.cartweaver.com

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points