Table column border in HTML
-
using HTML can I set a left and right border to a cell or column in a table w/o setting a top and bottom border? I don't want a box around it. I want a vertical line to the left and right of it.
Yes, using CSS. Give your table an id for example id="MyTable" Then in your style sheet create a style for the columns in that table #MyTable td{ border-right:1px solid #CCC; border-left:1px solid #CCC; border-top:0; border-left:0; } You can replace the #CCC with which ever colour you want, and set the width of the border. You can also try 'dotted' or 'dashed' instead of 'solid'.
Words fade as the meanings change, but somehow, it don't bother me.
-
Yes, using CSS. Give your table an id for example id="MyTable" Then in your style sheet create a style for the columns in that table #MyTable td{ border-right:1px solid #CCC; border-left:1px solid #CCC; border-top:0; border-left:0; } You can replace the #CCC with which ever colour you want, and set the width of the border. You can also try 'dotted' or 'dashed' instead of 'solid'.
Words fade as the meanings change, but somehow, it don't bother me.