how do I display the gridlines in a HTML table? (am using IE6)
+2
A:
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
2009-11-19 12:43:08
Use <style type="text/css"> instead.
MysticEarth
2009-11-19 12:44:20
the border-collapse on tds is superfluous (and in fact not standard).
Boldewyn
2009-11-19 12:44:50
true, i stand corrected.
pixeline
2009-11-19 12:47:02
one more question - how do I make the vertical lines solid, and the horizontal lines dashed?
Bazil
2009-11-19 13:55:16
border-left: 1px solid black;border-right:1px solid black;border-bottom:1px dotted black ( or dashed)
pixeline
2009-11-19 14:40:18
Should work, but it's better to separate content and design (content in html, design in css, where border is design.
MysticEarth
2009-11-19 12:45:39