holy24 Posted January 17, 2013 Share Posted January 17, 2013 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 More sharing options...
dsonesuk Posted January 17, 2013 Share Posted January 17, 2013 Try adding a doctype http://w3schools.com/tags/tag_doctype.asp Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now