Jump to content

How to show table border line even field is empty?


Recommended Posts

Hi, I have problem showing table border line when a field is empty. I tried using css: table{empty-cells:show;} but the border line still wont show. Can anyone please kindly help on this? Thanks. <html><head><link rel="stylesheet" type="text/css" href="style.css" /></head> <body><table align="center" border="1"> <tr> <td><b>Name</b></td> <td><b>Address</b></td> <td><b>Contact</b></td> </tr> <tr> <td><?php echo $row1['name']; ?></td> <td><?php echo $row1['address']; ?></td> <td><?php echo $row1['contact']; ?></td> </tr> </table> </body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...