56

how do I display the gridlines in a HTML table? (am using IE6)

Allan Bowe
  • 12,306
  • 19
  • 75
  • 124

3 Answers3

109

Via css. Put this inside the <head> tag.

<style type="text/css" media="screen">

table{
border-collapse:collapse;
border:1px solid #FF0000;
}

table td{
border:1px solid #FF0000;
}
</style>
pixeline
  • 17,669
  • 12
  • 84
  • 109
24
<table border="1"></table>

should do the trick.

slugster
  • 49,403
  • 14
  • 95
  • 145
0

For internal gridlines, use the tag: td For external gridlines, use the tag: table