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! :mad:
Printable View
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! :mad:
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
Thanks, but it seems a shame that I have to put content into every cell just to get it to display consistantly... :(
Hey, standards are standards. ;)
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.
I am using VB.NET to create an ASP.NET project. The HTML table is being used to format a DataRepeater control.
Dj4's solution still applies.